Magentix2  2.1.1
es.upv.dsic.gti_ia.cAgents.protocols.FIPA_RECRUITING_Participant.LOCATE_AGENTS_Method Class Reference
Inheritance diagram for es.upv.dsic.gti_ia.cAgents.protocols.FIPA_RECRUITING_Participant.LOCATE_AGENTS_Method:
Collaboration diagram for es.upv.dsic.gti_ia.cAgents.protocols.FIPA_RECRUITING_Participant.LOCATE_AGENTS_Method:

List of all members.

Public Member Functions

String run (CProcessor myProcessor)

Detailed Description

Definition at line 126 of file FIPA_RECRUITING_Participant.java.


Member Function Documentation

The method to be executed by the action state

Parameters:
myProcessorThe CProcessor of the conversation
Returns:
The name of the next state of the conversation

Implements es.upv.dsic.gti_ia.cAgents.ActionStateMethod.

Definition at line 128 of file FIPA_RECRUITING_Participant.java.

                                                          {
                        ACLMessage proxyMessage = (ACLMessage) myProcessor.getInternalData().get("proxyMessage");
                        ArrayList<AgentID> locatedAgents = doLocateAgents(myProcessor, proxyMessage);
                        if(locatedAgents.size() == 0)
                                return "FAILURE_NO_MATCH";
                        else{
                                myProcessor.getInternalData().put("locatedAgents", locatedAgents);
                                return "START_SUB_PROTOCOL";
                        }
                }               

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables