agent communication modele
bonjour
je veut implémenter un modèle suivant:
agent_coordinateur
agentA agentB
des communications direct bidirectionnelle entre agent_coordinateur et agentA, agent_coordinateur et agentB
aucune communication entre agent A et agent B
comment créer des agents JADE (pseudo code java)
sachant que agent_coordinateur est le superviseur et il décide quand il va donner la main a un agent
s.v.p
merci
probleme communication deux agents
Bonjour
Ca fait quelques jours que je travaille sur jade! J'ai un projet sur la continuité de services sur un réseau en java+jade!
J'ai traité analysé les tutoriels de Djug ( très bien expliqué d'ailleurs).
Mon problème est au niveau de la communication des agents A et B du tutoriel.
Je parviens bien à les créer et lancer les deux en ligne de commande :
Agent A
prompt> java jade.Boot -gui agent1:packagedelagent.AgentA
Agent B
prompt> java jade.Boot -container agent2:packagedelagent.AgentB
Le problème se situe au lancement de l'agent2, il commence et m'affiche les message d'erreur suivant :
C:\>java jade.Boot -container Agent2:firstAgent.AgentB
13 ao¹t 2011 19:31:02 jade.core.Runtime beginContainer
INFO: ----------------------------------
This is JADE 3.6 - revision 6032 of 2008/05/05 14:07:10
downloaded in Open Source, under LGPL restrictions,
at http://jade.tilab.com/
----------------------------------------
13 ao¹t 2011 19:31:03 jade.core.BaseService init
INFO: Service jade.core.management.AgentManagement initialized
13 ao¹t 2011 19:31:03 jade.core.BaseService init
INFO: Service jade.core.messaging.Messaging initialized
13 ao¹t 2011 19:31:03 jade.core.BaseService init
INFO: Service jade.core.mobility.AgentMobility initialized
13 ao¹t 2011 19:31:03 jade.core.BaseService init
INFO: Service jade.core.event.Notification initialized
13 ao¹t 2011 19:31:03 jade.core.messaging.MessagingService clearCachedSlice
INFO: Clearing cache
13 ao¹t 2011 19:31:03 jade.core.AgentContainerImpl joinPlatform
INFO: --------------------------------------
Agent container Container-2@ChristianJounda is ready.
--------------------------------------------
----------------agent B----------------
*** Uncaught Exception for agent Agent2 ***
java.lang.NumberFormatException: For input string: "( (action ( agent-identifier
:name Agent2@ChristianJounda:1099/JADE :addresses (sequence http://ChristianJo
unda:7778/acc )) (ACLMessage) ) (MTS-error ( agent-identifier :name AgentA@Chris
tianJounda:1099/JADE ) (internal-error "Agent not found: getContainerID() failed
to find agent AgentA@ChristianJounda:1099/JADE")) )"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at firstAgent.AgentB$afficher.action(AgentB.java:48)
at jade.core.behaviours.Behaviour.actionWrapper(Behaviour.java:340)
at jade.core.behaviours.CompositeBehaviour.action(CompositeBehaviour.jav
a:109)
at jade.core.behaviours.Behaviour.actionWrapper(Behaviour.java:340)
at jade.core.Agent$ActiveLifeCycle.execute(Agent.java:1530)
at jade.core.Agent.run(Agent.java:1468)
at java.lang.Thread.run(Unknown Source)
ERROR: Agent Agent2 died without being properly terminated !!!
State was 2 !!!!
Merci de m'apporter une solution,j'arrive plus a avancer
Création d'agent Jade avec Eclipse
Bonjour;
Pourriez vous m'aider à implémenter le modèle suivant:
Un agent supérieur décompose un problème (soit par exemple: ((w+x)*(y-z))) en deux sous-problèmes (soient : (w+x) et (y-z)) qu'il répartit entre deux agents (AgentSomme et AgentDifference), ces derniers les résolvent simultanément et renvoient les solutions partielles à l'agent supérieur qui calcule et affiche le résultat final (le produit).
Merci d'avance.