Sie sind auf Seite 1von 12

Jade: Getting Started

Multiagent Systems LM
Sistemi Multiagente LM

Stefano Mariani revised by Andrea Omicini s.mariani@unibo.it, andrea.omicini@unibo.it


Dipartimento di Informatica: Scienza e Ingegneria (DISI) Alma Mater StudiorumUniversit` a di Bologna a Cesena

Academic Year 2012/2013

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

1 / 12

Outline

Getting Jade

Running Jade

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

2 / 12

Getting Jade

Outline

Getting Jade

Running Jade

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

3 / 12

Getting Jade

Jade: Where & What I

Jade web page Onpen http://jade.tilab.com in a web browser


1 2 3 4

click on the upper-right corner (JADE 4.2.0) choose New user ll in the form and submitits all for free, dont panic (if anything changed) no conrmation mail will be sent, so you should immediately be able to download Jade (step (1) then log in) click on Continue yes, you agree. . .

5 6

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

4 / 12

Getting Jade

Jade: Where & What II

Which Jade? You will nd 5 les: jadeAll contains the 4 les below... jadeBin ready-to-use Jade jadeDoc full documentation (also available on-line) jadeSrc source code
jadeExamples

examples source code

Choose one as you pleasemy suggestion, get the full .zip

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

5 / 12

Running Jade

Outline

Getting Jade

Running Jade

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

6 / 12

Running Jade

Running from Binaries I


The only software requirement to execute Jade is the JRE version 5 or later Classpath yes Add the jade.jar archive in JADE-all-4.2.0/jade/lib/ to your JVM classpath (dont ask me how to, please. . . ) Open up your command prompt (anywhere you can run java) and type:
$> java jade.Boot -gui [options] -agents [AgentSpecier list] to launch Jade main container $> java jade.Boot -container [options] -agents [AgentSpecier list] to launch a peripheral (non-main) container connected to the same Jade platform (previous main container)

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

7 / 12

Running Jade

Running from Binaries II


Classpath no Open up your command prompt and navigate to JADE-all-4.2.0/jade/ folder Then type:
$> java -cp lib/jade.jar jade.Boot -gui [options] -agents [AgentSpecier list] to launch Jade main container $> java -cp lib/jade.jar jade.Boot -container [options] -agents [AgentSpecier list] to launch a peripheral (non-main) container connected to the same Jade platform (previous main container)

Port 1099 is the default main container listening port for intra-platform (remote) communications Port 7778 is the default main container listening port for inter-platform communications (default MTP is HTTP)
Mariani & Omicini (DISI, Univ. Bologna) L2 Jade Getting Started A.Y. 2012/2013 8 / 12

Running Jade

Running from Binaries III


What to expect I If you launched the main container, the RMA gui should show up and something like this should appear on the command prompt:

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

9 / 12

Running Jade

Running from Binaries IV


What to expect II If you launched a peripheral container, the RMA gui should self-update and something like this should appear on the command prompt:

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

10 / 12

Running Jade

Running from Binaries V


Some notes option -name when launching the main container lets you give a name to the Jade platform option -container-name when launching a peripheral container lets you choose a name for that container options -local-host / -local-port when launching the main container lets you choose a custom host / listening port for the Jade platform options -host / -port when launching a peripheral container lets you specify where to nd the remote main container to register to for other options, refer to the Jade documentation (administrators guide)

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

11 / 12

Jade: Getting Started


Multiagent Systems LM
Sistemi Multiagente LM

Stefano Mariani revised by Andrea Omicini s.mariani@unibo.it, andrea.omicini@unibo.it


Dipartimento di Informatica: Scienza e Ingegneria (DISI) Alma Mater StudiorumUniversit` a di Bologna a Cesena

Academic Year 2012/2013

Mariani & Omicini (DISI, Univ. Bologna)

L2 Jade Getting Started

A.Y. 2012/2013

12 / 12

Das könnte Ihnen auch gefallen