JADE框架搭建

来源:互联网 发布:曲面软件 编辑:程序博客网 时间:2024/06/06 16:45
 1、安装JADE
解压缩JADE-all-4.3.1,结构如下:

放到指定的盘符目录下,然后在环境变量里面添加环境变量
JADE_HOME=C:\JADE
CLASS_PATH=%JADE_HOME%\JADE-bin-4.3.1\jade\lib\jade.jar;%JADE_HOME%\JADE-src-4.3.1\jade\lib\commons-codec\commons-codec-1.3.jar;%JADE_HOME%\JADE-src-4.3.1\jade\classes

测试是否安装成功:
hen starting a Jade container, we can specify many options. In particular, the "-gui" option causes Jade to create a special "Remote Management Agent" with a graphical interface which shows all participating agents and containers. It can also be used to kill agents, start new ones or to trace messages sent between agents (with the "sniffer" tool).
CMD 控制台
java jade.Boot -gui x:Simple1
 
2、JADE option  
  java.Boot -gui 


The display shows our program as a folder called "Main-Container" which contains our Simple1 agent along with three other agents created by JADE. These other agents are:

  • ams: the Agent Management Service - the core agent which keeps track of all JADE programs and agents in the system 管理其他agent的生命周期
  • DF: the Directory Facility, a yellow page service, where agents can publish their services.
  • RMA: the Remote Management Agent which handles the GUI interface

0 0