[Jade] Création du premier agent avec Jade
Bonjour,
pouvez vous m'aider SVP?
J'ai essayé de créer mon premier agent comme dans le tutorial
http://djug.developpez.com/java/jade/creation-agent
mon code est le suivant
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| package FirstAgent;
import jade.core.Agent;
public class HelloWorldAgent extends Agent{
protected void setup() {
System.out.println("Hello World! jjjjjjjjjjjjjjjjjjjMy name is "+getLocalName());
// Make this agent terminate
doDelete();
}
} |
et j'ai obtenu le résultat suivant qui n'est pas celui attendue:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| nov. 02, 2012 11:47:29 AM jade.Boot parseCmdLineArgs
WARNING: WARNING: ignoring command line argument smith:FirstAgent.HelloWorldAgent occurring after agents specification
nov. 02, 2012 11:47:29 AM jade.Boot parseCmdLineArgs
WARNING: Note that agent specifications must be separated by a semicolon character ";" without spaces
nov. 02, 2012 11:47:29 AM jade.core.Runtime beginContainer
INFO: ----------------------------------
This is JADE 4.2.0 - revision 6574 of 2012/06/20 15:38:00
downloaded in Open Source, under LGPL restrictions,
at http://jade.tilab.com/
----------------------------------------
Retrieving CommandDispatcher for platform null
nov. 02, 2012 11:47:29 AM jade.imtp.leap.CommandDispatcher addICP
WARNING: Error adding ICP jade.imtp.leap.JICP.JICPPeer@10d0eae[Cannot bind server socket to localhost port 1099].
nov. 02, 2012 11:47:29 AM jade.core.AgentContainerImpl joinPlatform
SEVERE: Communication failure while joining agent platform: No ICP active
jade.core.IMTPException: No ICP active
at jade.imtp.leap.LEAPIMTPManager.initialize(LEAPIMTPManager.java:138)
at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:319)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:489)
at jade.core.Runtime.createMainContainer(Runtime.java:166)
at jade.Boot.main(Boot.java:89)
nov. 02, 2012 11:47:29 AM jade.core.Runtime$1 run
INFO: JADE is closing down now. |