42
JADE Toshihiro Tamura 12/16/09

JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE JADE = Java Agent DEvelopment framework JADE is based on JAVA and developed in Italy in 1998

Embed Size (px)

Citation preview

Page 1: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

JADE

Toshihiro Tamura12/16/09

Page 2: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

1. What’s the JADE JADE = Java Agent DEvelopment framework

JADE is based on JAVA and developed in Italy in 1998.

JADE is modified FIPA.

Page 3: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

2. Advantage of using JADE We can watch the agents’ communication

easily.

Page 4: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

2. Advantage of using JADE We can create about 1,000 agent’s in every

container.

Page 5: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

2. Advantage of using JADE We can run JADE agents

on the Mobile Devices

Android(mobile phone) →

Page 6: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

3. How to download JADE http://jade.tilab.com/ (Latest version is 3.7)

Page 7: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

3. How to download JADE Click “New user”

Page 8: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

3. How to download JADE

Input New user registration form

If you finish it, click “submit” button at the bottom of this page.

Then, a mail will be sent to you.

Page 9: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

3. How to download JADE

Click “continue” Button. (①)

Then you are back to the top page.

And click “JADE3.7” again. (②)

①②

Page 10: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

3. How to download JADE

Click “continue”

Page 11: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

3. How to download JADE

Read license and click “agree”

Page 12: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

3. How to download JADE

Please choose jadeAll.zip

Page 13: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

4. How to install JADE

Unzip and confirm these files.

Bin : JADE Doc : JADE’s documentation Examples : JADE’s sample program Src : JADE’s source code

Page 14: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

4. How to install JADE Unzip “Jade-bin-3.6.1.zip”

Page 15: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

4. How to install JADEThere is a folder named “jade” in unzipped file.Move it to the folder that you want to install

JADE. (In this example, move to C: \ )

Page 16: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

4. How to install JADE(Vista) Right-click “ コンピュータ” and choose “ プロパ

ティ”

Page 17: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

4. How to install JADE(Vista) Click “ システムの詳細設定”

Page 18: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

4. How to install JADE(Vista) Click “ 詳細設定” and “ 環境変数”

Page 19: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

4. How to install JADE Click below “ 新規”

Page 20: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

4. How to install JADEInput like this変数名: JADE_HOME変数値 : (JADE folder’s address)\jade

Page 21: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

4. How to install JADE Choose CLASSPATH and click “ 編集”If there is not “CLASSPATH”, click ” 新規”

Page 22: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

4. How to install JADEAdd these sentences in “ 変数値” %JADE_HOME%\lib\jade.jar; %JADE_HOME%\lib\jadeTools.jar; %JADE_HOME%\lib\http.jar; %JADE_HOME%\lib\iiop.jar; %JADE_HOME%\lib\commons-codec\commons-

codec-1.3.jar; %JADE_HOME%\classes

Don’t delete initial value!After adding, close all windows by choosing “OK”

Page 23: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

5. How to run JADE Start “command prompt”

Input java jade.Boot -gui

Page 24: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

5. How to run JADE Installing is success!

Page 25: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

EJADE

Toshihiro Tamura

12/16/09

Page 26: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

6. What’s the EJADE EJADE is a plug-in of eclipse.

We can program JADE on eclipse by using EJADE.

The version of eclipse recommends since 3.4.

Page 27: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

7. How to install EJADE

Start eclipse.Click Help -> Install New Software

This eclipse is ver3.4 and translated to Japanese sorry

Page 28: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

7. How to install EJADE

Click Available Software -> add site

Page 29: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

7. How to install EJADE

Input

http://disi.unitn.it/~dnguyen/ejade/updateAnd click OK

Page 30: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

7. How to install EJADE

Inputted site is added!Check the site and click install, then downloading start

Page 31: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

7. How to install EJADE

Click Next when downloading finishAccept the license and click finish.

Page 32: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

7. How to install EJADE

Restart eclipse

Page 33: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

7. How to install EJADE

If there are these icons, installing is success!

Page 34: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

8. How to develop on eclipse

Click File->Switch Workspace->OtherChange to “classes” folder set at p22

In this case C:\jade\classes

Page 35: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

8. How to develop on eclipse

Create Java projectRight-click it and click “Toggle JADE/JADEX agent nature”

Page 36: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

8. How to develop on eclipse

Adding the library to develop JADE, we can develop JADE on eclipse

Page 37: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

9. How to run on eclipse

Confirm that there is no error and click EJADE->START JADE RMA (or click the icon in red circle)

Page 38: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

9. How to run on eclipse

JADE is started!

Page 39: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

9. How to run on eclipse

Right-click Java file and click EJADE->Deploy Agent(s)

Page 40: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

9. How to run on eclipse

Set these parameter and click finish

Agent name :agent’s nameAgent parameter :agent’s parameter(like argument)Number of clone :the number of this agent

Page 41: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

9. How to run on eclipse

Created the agent!

Page 42: JADE Toshihiro Tamura 12/16/09. 1. What’s the JADE  JADE = Java Agent DEvelopment framework  JADE is based on JAVA and developed in Italy in 1998

10.DEMO Shop_1.java