Magentix2
2.1.1
|
Public Member Functions | |
String | run (CProcessor myProcessor) |
Definition at line 168 of file FIPA_RECRUITING_Participant.java.
String es.upv.dsic.gti_ia.cAgents.protocols.FIPA_RECRUITING_Participant.START_SUB_PROTOCOL_Method.run | ( | CProcessor | myProcessor | ) |
The method to be executed by the action state
myProcessor | The CProcessor of the conversation |
Implements es.upv.dsic.gti_ia.cAgents.ActionStateMethod.
Definition at line 171 of file FIPA_RECRUITING_Participant.java.
{ ACLMessage initialMessage = (ACLMessage) myProcessor.getInternalData().get("proxyMessage"); ArrayList<AgentID> locatedAgents = (ArrayList<AgentID>) myProcessor.getInternalData().get("locatedAgents"); for(int i=0; i < locatedAgents.size(); i++){ initialMessage.setReceiver(locatedAgents.get(i)); initialMessage.setReplyTo(initialMessage.getSender()); ACLMessage subProtocolMessageResult = myProcessor.createSyncConversation(initialMessage); if(!resultOfSubProtocol(myProcessor, subProtocolMessageResult)) return "FAILURE_PROXY"; } return "INFORM"; }