Chinaunix首页 | 论坛 | 博客
  • 博客访问: 27701
  • 博文数量: 6
  • 博客积分: 155
  • 博客等级: 入伍新兵
  • 技术积分: 75
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-02 13:12
文章分类

全部博文(6)

文章存档

2011年(6)

最近访客

分类: Java

2011-05-05 14:56:33

Run Configurations中mainclass为jade.Boot,Program arguments的格式为:-gui name1:package1.class1;name2:package2.class2...
 
如:-gui hello:jadetest.HelloWorldAgent;sb:jadetest.SimpleBehaviour;
exam:examplesbehaviours.SimpleAgent;baz:ips.SimpleRequestInitiator;
bob:ips.SimpleRequestResponder;
生成窗口的结果为:
 
2011-5-5 14:42:37 jade.core.Runtime beginContainer
信息: ----------------------------------
    This is JADE snapshot - revision 6357 of 2010/07/06 16:27:34
    downloaded in Open Source, under LGPL restrictions,
    at
----------------------------------------
Retrieving CommandDispatcher for platform null
2011-5-5 14:42:38 jade.imtp.leap.LEAPIMTPManager initialize
信息: Listening for intra-platform commands on address:
- jicp://180.85.181.143:1099
2011-5-5 14:42:40 jade.core.BaseService init
信息: Service jade.core.management.AgentManagement initialized
2011-5-5 14:42:40 jade.core.BaseService init
信息: Service jade.core.messaging.Messaging initialized
2011-5-5 14:42:40 jade.core.BaseService init
信息: Service jade.core.mobility.AgentMobility initialized
2011-5-5 14:42:40 jade.core.BaseService init
信息: Service jade.core.event.Notification initialized
2011-5-5 14:42:40 jade.core.messaging.MessagingService clearCachedSlice
信息: Clearing cache
2011-5-5 14:42:40 jade.mtp.http.HTTPServer
信息: HTTP-MTP Using XML parser com.sun.org.apache.xerces.internal.parsers.SAXParser
2011-5-5 14:42:40 jade.core.messaging.MessagingService boot
信息: MTP addresses:

2011-5-5 14:42:40 jade.core.AgentContainerImpl joinPlatform
信息: --------------------------------------
Agent container is ready.
--------------------------------------------
Hello World Behaviour run: Hello World!
-----About Me:-----
My local name is:sb
My globally unique name is:sb@180.85.181.143:1099/JADE
-----About Here:-----
Agent Started: Hello World!
-----About Me:-----
My local name is:hello
My globally unique name is:hello@180.85.181.143:1099/JADE
-----About Here:-----
Agent exam started.
bob: I wonder if anybody wants to marry me?
I am running in a location called:Main-Container
Which is identified uniquely as:Main-Container@180.85.181.143
And is contactable at:180.85.181.143
Using the protocol:jicp
baz: about to propose marriage to bob
I am running in a location called:Main-Container
Which is identified uniquely as:Main-Container@180.85.181.143
And is contactable at:180.85.181.143
Using the protocol:jicp
Cycling
Operation 1
Cycling
Operation 2. Adding one-shot behaviour
2011-5-5 14:42:41 jade.core.messaging.MessagingService removeLocalAliases
信息: Removing all local alias entries for agent exam
2011-5-5 14:42:41 jade.core.messaging.MessagingService removeGlobalAliases
信息: Removing all global alias entries for agent exam
Cycling
Operation 3
One-shot
Cycling
Operation 4
Finished!
bob:baz has asked me to marry him!
bob:I'm going to agree.
baz: 吼吼! bob 已经同意嫁给我了, I'm so excited!
baz:bob has informed me of the status of my request. They said : I Do!
 
JADE主容器界面:
 
 
阅读(2590) | 评论(0) | 转发(0) |
0

上一篇:在eclipse中的停止/运行命令

下一篇:没有了

给主人留下些什么吧!~~