Eclipse Jade

当初在学校弄过一下Jade

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

 

下载,3.7 版本

 

Eclipse新建一个Java Project:

构建路径:

构建路径

 

HelloWorld例子:

 

方法

 

代码

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();
 }
}

 

设置:

 

 

 

结果输出:

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 Main-Container@20090814-1923 is ready.
--------------------------------------------
HelloWorld!我的名字是:Chen

 

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

gui 参数

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值