|
From: <jom...@us...> - 2015-10-28 11:07:47
|
Revision: 1850
http://sourceforge.net/p/jason/svn/1850
Author: jomifred
Date: 2015-10-28 11:07:45 +0000 (Wed, 28 Oct 2015)
Log Message:
-----------
update bdi hello world tutorial
Modified Paths:
--------------
trunk/doc/mini-tutorial/src/hello-bdi/Makefile
trunk/doc/mini-tutorial/src/hello-bdi/index.html
trunk/doc/mini-tutorial/src/hello-bdi/index.org
trunk/doc/mini-tutorial/src/hello-bdi/jcm.css
Modified: trunk/doc/mini-tutorial/src/hello-bdi/Makefile
===================================================================
--- trunk/doc/mini-tutorial/src/hello-bdi/Makefile 2015-10-19 08:28:05 UTC (rev 1849)
+++ trunk/doc/mini-tutorial/src/hello-bdi/Makefile 2015-10-28 11:07:45 UTC (rev 1850)
@@ -7,6 +7,7 @@
cp jcm.css ../../hello-bdi
cp -R screens ../../hello-bdi
cp -R code ../../hello-bdi
+ find . -name .DS_Store -exec rm {} \;
publish:
scp index.html jomifred,ja...@we...:/home/groups/j/ja/jason/htdocs/mini-tutorial/hello-bdi
Modified: trunk/doc/mini-tutorial/src/hello-bdi/index.html
===================================================================
(Binary files differ)
Modified: trunk/doc/mini-tutorial/src/hello-bdi/index.org
===================================================================
--- trunk/doc/mini-tutorial/src/hello-bdi/index.org 2015-10-19 08:28:05 UTC (rev 1849)
+++ trunk/doc/mini-tutorial/src/hello-bdi/index.org 2015-10-28 11:07:45 UTC (rev 1850)
@@ -8,8 +8,9 @@
#+LANGUAGE: pt
#+OPTIONS: email:t H:2 toc:2 num:nil author:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:nil
-#+STYLE: <link rel="stylesheet" type="text/css" href="./jcm.css" />
+#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./jcm.css" />
+
* Introduction
This programming (mini) tutorial will illustrate how the BDI model is used in the [[http://jason.sf.net][Jason]] agent-oriented programming language. We start by a very simple agent code and progress exploring the BDI features of Jason.
@@ -162,7 +163,7 @@
intention to react to the event.
The first plan for =+happy(H)= is used when =H= is =bob= and the
-source of =happy(H)= is sincere ([[http://jason.sourceforge.net/api/jason/stdlib/my_name.html][=.my\_name=]] is true if the value of
+source of =happy(H)= is sincere ([[http://jason.sourceforge.net/api/jason/stdlib/my_name.html][=.my_name=]] is true if the value of
=H= is the name of the agent executing that internal action). The
second plan is used otherwise. The first plan for =+!say(X)= is used
in days other than Monday and the second on Fridays. (Notice that
@@ -275,7 +276,7 @@
+today(saturday) <- .print("**** weekend!"); .drop_all_intentions.
+!enter_lazy_mode
- : .findall(A, .intend(say(A)), [_,_|L]) // the agent has two say intentions
+ : .findall(A, .intend(say(A)), [_,_|L]) // the agent has at most two active "say" intentions
<- for ( .member(I,L) ) {
.suspend(say(I));
}.
Modified: trunk/doc/mini-tutorial/src/hello-bdi/jcm.css
===================================================================
--- trunk/doc/mini-tutorial/src/hello-bdi/jcm.css 2015-10-19 08:28:05 UTC (rev 1849)
+++ trunk/doc/mini-tutorial/src/hello-bdi/jcm.css 2015-10-28 11:07:45 UTC (rev 1850)
@@ -41,6 +41,14 @@
padding-right: 10px;
}
+.subtitle {
+ color:#48005E;
+ font-weight: normal;
+ font-size: medium;
+ font-family: "Helvetica Neue Light", Optima, Garamond, Times;
+ text-align: center;
+}
+
H1 {
color:#48005E;
font-size: 150%; font-weight:200;
@@ -91,3 +99,42 @@
/*border: 1px solid black;*/
font-family: Courier, fixed, serif;
}
+
+code
+{
+ white-space: pre;
+ font-family: Courier, fixed, serif;
+}
+
+#table-of-contents {
+ font-size: 10pt;
+ position: fixed;
+ right: 0em;
+ top: 0em;
+ background: white;
+ line-height: 12pt;
+ text-align: right;
+ box-shadow: 0 0 1em #777777;
+ -webkit-box-shadow: 0 0 1em #777777;
+ -moz-box-shadow: 0 0 1em #777777;
+ -webkit-border-bottom-left-radius: 5px;
+ -moz-border-radius-bottomleft: 5px;
+ /* ensure doesn't flow off the screen when expanded */
+ max-height: 80%;
+ overflow: auto; }
+#table-of-contents h2 {
+ font-size: 13pt;
+ max-width: 9em;
+ border: 0;
+ font-weight: normal;
+ padding-left: 0.5em;
+ padding-right: 0.5em;
+ padding-top: 0.05em;
+ padding-bottom: 0.05em; }
+#table-of-contents #text-table-of-contents {
+ display: none;
+ text-align: left; }
+#table-of-contents:hover #text-table-of-contents {
+ display: block;
+ padding: 0.5em;
+ margin-top: -1.5em; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|