Skip to content

Commit

Permalink
update BDI tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
jomifred committed Dec 15, 2016
1 parent 4512b9b commit f98eac0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'signing'

version '2.1-SNAPSHOT'
version '2.1'
group 'org.jason-lang'

sourceCompatibility = 1.7
Expand Down
2 changes: 1 addition & 1 deletion doc/tutorials/hello-bdi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ publish:
scp index.html jomifred,jason@web.sf.net:/home/groups/j/ja/jason/htdocs/mini-tutorial/hello-bdi
# scp jcm.css jomifred,jason@web.sf.net:/home/groups/j/ja/jason/htdocs/mini-tutorial/hello-bdi
# scp -r screens jomifred,jason@web.sf.net:/home/groups/j/ja/jason/htdocs/mini-tutorial/hello-bdi
# scp -r code jomifred,jason@web.sf.net:/home/groups/j/ja/jason/htdocs/mini-tutorial/hello-bdi
scp -r code jomifred,jason@web.sf.net:/home/groups/j/ja/jason/htdocs/mini-tutorial/hello-bdi
8 changes: 4 additions & 4 deletions doc/tutorials/hello-bdi/code/Calendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ void initGUI() {

/*
protected void linkChangeEventToOp(JSlider source, String opName){
insertEventToOp(source,"stateChanged",opName);
source.addChangeListener((ChangeListener) getEventListenerInstance());
}
insertEventToOp(source,"stateChanged",opName);
source.addChangeListener((ChangeListener) getEventListenerInstance());
}
*/

@INTERNAL_OPERATION void updateDay(ChangeEvent ev) {
@INTERNAL_OPERATION void updateDay(ChangeEvent ev) {
try {
ObsProperty prop = getObsProperty("today");
prop.updateValue(days[ (int)s.getValue() ]);
Expand Down
2 changes: 1 addition & 1 deletion doc/tutorials/hello-bdi/code/bob.asl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sincere(alice).

+!say(X) : today(friday) <- .print(X,"!!!!!"); .wait(500); !say(X).
+!say(X) : not today(monday) <- .print(X); .wait(math.random(400)+100); !say(X).
+!say(X) <- !say(X).
+!say(X) <- !say(X).

+today(wednesday) <- .print("**** Let's slow down.... **** (only 2 intentions)"); !enter_lazy_mode.
+today(friday) <- .print("**** Let's finish the work!"); !resume_all.
Expand Down
8 changes: 8 additions & 0 deletions release-notes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@

ifdef::env-github[:outfilesuffix: .adoc]

== version 2.1

(build package available at https://sourceforge.net/projects/jason/files/jason/version%202.1/[here])

- this release just fixes some bugs

== version 2.0

(build package available at https://sourceforge.net/projects/jason/files/jason/version%202.0/[here])

*New features*

- modules and namespaces, see link:doc/tech/modules-namespaces.pdf[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,9 @@ private void createThreadPool() {
if (ag.getCyclesAct() == -1) ag.setCyclesAct(cyclesAct);

if (executor != null) {
executor.execute(ag);
if (ag instanceof CentralisedAgArchForPool)
((CentralisedAgArchForPool)ag).setExecutor(executor);
executor.execute(ag);
} else if (ag instanceof CentralisedAgArchAsynchronous) {
CentralisedAgArchAsynchronous ag2 = (CentralisedAgArchAsynchronous) ag;

Expand Down

0 comments on commit f98eac0

Please sign in to comment.