JADE installation and Hello World application Fabiano Dalpiaz
JADE: installation and “Hello World” application Fabiano Dalpiaz Agent-Oriented Software Engineering (AOSE) 2009 -10
What is JADE? • JADE - Java Agent DEvelopment Framework is a framework to develop and run multi-agent systems in compliance with the FIPA specifications. – Developed by Telecom Italia @TILab – Distributed under LGPL Can be downloaded from http: //jade. tilab. com Free registration is required F. Dalpiaz - AOSE 2009
Again, what is JADE? Agents JADE F. Dalpiaz - AOSE 2009
Where can I find help? • JADE administrator guide http: //jade. tilab. com/doc/administratorsguide. pdf • JADE programmer guide http: //jade. tilab. com/doc/programmersguide. pdf • Examples & tutorials http: //jade. tilab. com/doc/index. html • The JADE book Developing Multi-Agent Systems with JADE Fabio Bellifemine, Giovanni Caire, Dominic Greenwood Editor: WILEY ISBN: 978 -0 -470 -05747 -6 F. Dalpiaz - AOSE 2009
Main features of JADE • JADE is a middleware that facilitates the development of multi-agent systems. It includes – A runtime environment where JADE agents can “live” and that must be active on a given host before one or more agents can be executed on that host. – A library of classes that programmers have to/can use (directly or by specializing them) to develop their agents. – A suite of graphical tools that allows administrating and monitoring the activity of running agents. F. Dalpiaz - AOSE 2009
FIPA-compliance • JADE complies with the FIPA standards – FIPA = Foundation for Intelligent Physical Agents – Its standards include: • Agent communication (ACL) • Agent management • Agent message transport • Abstract architecture • Applications – http: //www. fipa. org/ F. Dalpiaz - AOSE 2009
JADE distributed architecture F. Dalpiaz - AOSE 2009
Containers and Platforms • A JADE platform enables agents' execution. Platforms are composed of one or more containers • A main container differs from normal containers as it holds two special agents (automatically started when the main container is launched). • The AMS (Agent Management System) provides the naming service (i. e. ensures that each agent in the platform has a unique name) and represents the authority in the platform (for instance it is possible to create/kill agents on remote containers by requesting that to the AMS). • The DF (Directory Facilitator) provides a Yellow Pages service by means of which an agent can find other agents providing the services he requires in order to achieve his goals. F. Dalpiaz - AOSE 2009
Agent lifecycle Agents are “born”, “live”, and eventually “die” F. Dalpiaz - AOSE 2009
Installing JADE 1) Download and install JAVA JDK 2) Go to http: //jade. tilab. com/download. php 3) Register (create your user) 4) Login and download jade. All. zip 5) Extract jade. All. zip to a folder (e. g. , c: jade, /home/user/jade) – We will refer that folder JADE_HOME from now on 6) Add the following files to CLASSPATH: –. – JADE_HOME/lib/http. jar – JADE_HOME/lib/iiop. jar Windows: SET CLASSPATH=%CLASSPATH%; . ; c: jadelibhttp. jar; c: jadelibiiop. jar; c: jadelibjade. Tools. jar; – JADE_HOME/lib/jade. jar – JADE_HOME/lib/jade. Tools. jar F. Dalpiaz - AOSE 2009
Installing JADE Test your JADE installation: execute java jade. Boot -gui F. Dalpiaz - AOSE 2009
Did it work? JADE can run without GUI JADE is running properly if this GUI is shown F. Dalpiaz - AOSE 2009
The JADE GUI anatomy F. Dalpiaz - AOSE 2009
A simple exercise with the GUI da 0 da 1 • TODO: – Repeat the same exercise with two providers – Run the sniffer to monitor what happens F. Dalpiaz - AOSE 2009
Next classes • We will cover the main topics of JADE • Hands on! – Exercises – Discussion • Project assignments – Simulation of a real-life scenario as a multi-agent system – You will receieve detailed specification – Creativity is required to simulate at best – 2 -3 members per team – We will give you hints and check the progress of your projects F. Dalpiaz - AOSE 2009
- Slides: 15