Magentix2  2.1.1
es.upv.dsic.gti_ia.jason.conversationsFactory.initiator.Jason_FCN_Initiator.RECEIVE_INFORM_Method Class Reference
Inheritance diagram for es.upv.dsic.gti_ia.jason.conversationsFactory.initiator.Jason_FCN_Initiator.RECEIVE_INFORM_Method:
Collaboration diagram for es.upv.dsic.gti_ia.jason.conversationsFactory.initiator.Jason_FCN_Initiator.RECEIVE_INFORM_Method:

List of all members.

Public Member Functions

String run (CProcessor myProcessor, ACLMessage messageReceived)

Detailed Description

Definition at line 406 of file Jason_FCN_Initiator.java.


Member Function Documentation

The method to be executed by the receive state

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

Implements es.upv.dsic.gti_ia.cAgents.ReceiveStateMethod.

Definition at line 407 of file Jason_FCN_Initiator.java.

                                                                                      {
                        doReceiveInform((ConvCProcessor)myProcessor, messageReceived);
                        int acceptedProposals = (Integer)myProcessor.getInternalData().get("acceptedProposals");
                        int receivedResults = (Integer)myProcessor.getInternalData().get("receivedResults");
                        receivedResults++;
                        myProcessor.getInternalData().put("receivedResults", receivedResults);
                        if(receivedResults >= acceptedProposals)
                                return "FINAL";
                        else
                                return "WAIT_FOR_RESULTS";
                }

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