Eclipse Jade

当初在学校弄过一下Jade

现在,无聊透顶,重新弄弄!

 

下载,3.7 版本

 

Eclipse新建一个Java Project:

构建路径:

Eclipse Jade

 

HelloWorld例子:

 

Eclipse Jade

 

Eclipse Jade

package com.chen.jade;

import jade.core.Agent;


public class HelloWorld extends Agent{

 /**
  *
  */
 private static final long serialVersionUID = -1726854037434314269L;

 protected void setup() {
  System.out.println("HelloWorld!我的名字是:"+getLocalName());
  
  
 }

 public void doDelete() {
  super.doDelete();
 }
}

 

设置:

 

Eclipse Jade

 

Eclipse Jade

 

结果输出:

2009-10-10 10:54:43 jade.core.Runtime beginContainer
信息: ----------------------------------
    This is JADE 3.7 - revision 6154 of 2009/07/01 17:34:15
    downloaded in Open Source, under LGPL restrictions,
    at http://jade.tilab.com/
----------------------------------------
2009-10-10 10:54:45 jade.core.BaseService init
信息: Service jade.core.management.AgentManagement initialized
2009-10-10 10:54:45 jade.core.BaseService init
信息: Service jade.core.messaging.Messaging initialized
2009-10-10 10:54:45 jade.core.BaseService init
信息: Service jade.core.mobility.AgentMobility initialized
2009-10-10 10:54:45 jade.core.BaseService init
信息: Service jade.core.event.Notification initialized
2009-10-10 10:54:45 jade.core.messaging.MessagingService clearCachedSlice
信息: Clearing cache
2009-10-10 10:54:46 jade.mtp.http.HTTPServer <init>
信息: HTTP-MTP Using XML parser com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser
2009-10-10 10:54:46 jade.core.messaging.MessagingService boot
信息: MTP addresses:
http://20090814-1923:7778/acc
2009-10-10 10:54:46 jade.core.AgentContainerImpl joinPlatform
信息: --------------------------------------
Agent container [email protected] is ready.
--------------------------------------------
HelloWorld!我的名字是:Chen

 

修改参数设置:-gui chen:com.chen.jade.HelloWorld

Eclipse Jade