Olivier Boissier, Rafael H. Bordini, Jomi Fred Hübner and Alessandro Ricci
MIT Press, September 2020
This page contains additional information and material for the book Multi-Agent Oriented Programming.
Examples and Exercises
All the code used in the book (examples and exercises) is available for download here.
The examples are organised in directories with the same structure as the book.
For instance, the example Single Agent Hello World (chapter 3, section 3.1) is placed in the directory sec3.1
.
To run the examples you need to install
-
Java >= 17 (ensure that the environment variable
JAVA_HOME
is properly set)
and then simply execute the gradlew
(or gradlew.bat
) program that is available in the directory:
cd sec3.1 ./gradlew
Example of output:
[bob] Hello World
Note
|
to edit the code, create new projects and discover other options to run the application, see the JaCaMo web site. |
Note
|
the JaCaMo version used in the book is 1.1 |