Magentix2
2.1.1
|
Public Member Functions | |
String | run (CProcessor myProcessor, ACLMessage messageReceived) |
Definition at line 306 of file FIPA_CONTRACTNET_Initiator.java.
String es.upv.dsic.gti_ia.cAgents.protocols.FIPA_CONTRACTNET_Initiator.RECEIVE_FAILURE_Method.run | ( | CProcessor | myProcessor, |
ACLMessage | receivedMessage | ||
) |
The method to be executed by the receive state
myProcessor | The CProcessor of the conversation |
Implements es.upv.dsic.gti_ia.cAgents.ReceiveStateMethod.
Definition at line 307 of file FIPA_CONTRACTNET_Initiator.java.
{ doReceiveFailure(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"; }