![]() |
Programming with JADE – Basic Features
|
![]() |
If you wish so, you can download all these support files on your computer in a single .zip file.
Notice that all provided .bat files are for a Windows computer.
Remind that you need to download and install JADE before you start.
This companion material shows you how to:
- set the CLASSPATH variable (remind to edit the .bat file to set the directory where you installed JADE on your computer)
- HelloWorldAgent.java described in Section 4.1, pag. 51
- HelloWorldAgent.java described in Section 4.1.1, pag. 52
- compile all source files of this chapter
- command-line to launch HelloWorldAgent, as shown in Section 4.1.2 pag. 53
- command-line to launch HelloWorldAgent and assign a custom name to the platform, as shown in Section 4.1.2 pag. 53
- HelloWorldAgent.java described in section 4.1.4 pag. 54 which gets arguments passed on the command-line
- command-line to launch HelloWorldAgent and pass arguments, as shown in Sectin 4.1.4 pag. 54
- All Source files of the BookTrading example. The source files have been annotated with comments reporting where in the book each feature is described. Some parts of the source files (e.g. the GUIs) have not been described in the book as they are out of scope: it is just pure Java programming, no special feature is added by JADE.
- The source files can be compiled by using this script …
- … and the example can also be launched by using this script. It launches a JADE platform with 2 Seller Agents, 2 Buyer Agents, a Sniffer Agent to sniff their conversations, and the JADE RMA console. Use the GUIs to put book titles on sale/buy and specify the min/max cost and the time by which you want the negotation to be terminated.
- Notice that the example should be appreciated for the description of the JADE features rather than for the application per-se or for the implemented negotation strategies (which are very trivial for teaching purposes).
Agent Tasks (section 4.2, pag. 57)
All these source files can be compiled by using this script.
- OverbearingBehaviour.java (section 4.2.1, pag. 58)
- MyOneShotBehaviour.java (section 4.2.2, pag. 59)
- MyCyclicBehaviour.java (section 4.2.2 pag. 60)
- ThreeStepBehaviour.java (section 4.2.2 pag. 60)
- MyAgent.java (section 4.2.4 pag. 61, first example)
- MyAgent.java (section 4.2.4 pag. 61, second example)
- SendingMessages.java (section 4.3.1, pag. 66)
JADE™ and related logos are a registered trademark of Telecom Italia S.p.A. (formerly Telecom Italia)
Developing Multi-Agent Systems with JADE
Fabio Luigi Bellifemine, Giovanni Caire, Dominic Greenwood
© 2007 John Wiley & Sons, Ltd