|
From: <jom...@us...> - 2014-09-23 17:37:41
|
Revision: 1808
http://sourceforge.net/p/jason/svn/1808
Author: jomifred
Date: 2014-09-23 17:37:34 +0000 (Tue, 23 Sep 2014)
Log Message:
-----------
udpate FAQ and exercise answers (considering !! and TRO)
Modified Paths:
--------------
trunk/doc/faq/faq.tex
trunk/doc/mini-tutorial/labs.css
trunk/doc/mini-tutorial/src/getting-started/exercise-answers.txt
trunk/doc/mini-tutorial/src/getting-started/getting-started.tex
trunk/lib/moise.jar
Modified: trunk/doc/faq/faq.tex
===================================================================
--- trunk/doc/faq/faq.tex 2014-09-22 17:56:19 UTC (rev 1807)
+++ trunk/doc/faq/faq.tex 2014-09-23 17:37:34 UTC (rev 1808)
@@ -1007,9 +1007,18 @@
\end{verbatim}
In this case, the !! is used to avoid Jason creating long stacks of
(empty) plans, so the operator just allows Jason to process the
-recursion more efficiently.
+recursion more efficiently.
+Jason 1.4.0 implements \textbf{tail recursion optimisation} and thus
+we don't need to worry about the stack size anymore. The above code
+should be written as:
+\begin{verbatim}
++!g : end_recursion_context.
++!g : true <- action1; !g.
+\end{verbatim}
+
+
\subsection{Why is \jason's plan failure mechanism different from
other agent platforms?}
Modified: trunk/doc/mini-tutorial/labs.css
===================================================================
--- trunk/doc/mini-tutorial/labs.css 2014-09-22 17:56:19 UTC (rev 1807)
+++ trunk/doc/mini-tutorial/labs.css 2014-09-23 17:37:34 UTC (rev 1808)
@@ -1,6 +1,6 @@
body {
background-color: white;
- font-family: Arial, Verdana, Tahoma, Helvetica, Sans-Serif;
+ font-family: Optima, Arial, Verdana, Tahoma, Helvetica, Sans-Serif;
text-align:left;
/*margin-left: 3em;
margin-right: 1em;*/
Modified: trunk/doc/mini-tutorial/src/getting-started/exercise-answers.txt
===================================================================
--- trunk/doc/mini-tutorial/src/getting-started/exercise-answers.txt 2014-09-22 17:56:19 UTC (rev 1807)
+++ trunk/doc/mini-tutorial/src/getting-started/exercise-answers.txt 2014-09-23 17:37:34 UTC (rev 1808)
@@ -110,9 +110,9 @@
----------------------------------------
!clean. // initial goal
-+!clean : clean <- !move; !!clean.
-+!clean : dirty <- suck; !move; !!clean.
--!clean <- !!clean.
++!clean : clean <- !move; !clean.
++!clean : dirty <- suck; !move; !clean.
+-!clean <- !clean.
+!move : pos(1) <- right.
+!move : pos(2) <- down.
@@ -136,8 +136,6 @@
circumstances (note the empty plan context); this is what causes the
"blind commitment" behaviour mentioned above
- this agent is thus more 'robust' against action failures
-- '!!' is used in the recursions for efficiency, see
- http://jason.sourceforge.net/faq/faq.html#SECTION00075000000000000000
- the use of goals also allows us to easily code plans that handle
other goals. For instance, suppose we want to code the robot in a way
@@ -149,9 +147,9 @@
!clean. // initial goal to clean
!pause. // initial goal to break
-+!clean : clean <- !move; !!clean.
-+!clean : dirty <- suck; !move; !!clean.
--!clean <- !!clean.
++!clean : clean <- !move; !clean.
++!clean : dirty <- suck; !move; !clean.
+-!clean <- !clean.
+!move : pos(1) <- right.
+!move : pos(2) <- down.
@@ -165,7 +163,7 @@
.wait(1000); // suspend this intention again for 1 second
.print(cleaning);
.resume(clean); // resume the clean intention
- !!pause.
+ !pause.
----------------------------------------
Just to see how flexible it is to program with goals, you might want
Modified: trunk/doc/mini-tutorial/src/getting-started/getting-started.tex
===================================================================
--- trunk/doc/mini-tutorial/src/getting-started/getting-started.tex 2014-09-22 17:56:19 UTC (rev 1807)
+++ trunk/doc/mini-tutorial/src/getting-started/getting-started.tex 2014-09-23 17:37:34 UTC (rev 1808)
@@ -29,7 +29,7 @@
\section{Installation and Configuration}
\begin{enumerate}
-\item Java JDK >= 5.0 is required (\url{http://java.sun.com});
+\item Java JDK >= 6.0 is required (\url{http://java.sun.com});
\item Download \Jason from \url{http://jason.sf.net};
\item Create a folder for your \Jason installation and decompress the
distribution file in it;
Modified: trunk/lib/moise.jar
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|