Magentix2
2.1.1
|
Public Member Functions | |
String | run (CProcessor myProcessor, ACLMessage messageReceived) |
Definition at line 57 of file CommitmentStore_Protocol.java.
String es.upv.dsic.gti_ia.cAgents.protocols.CommitmentStore_Protocol.Receive_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 58 of file CommitmentStore_Protocol.java.
{ if(messageReceived.getHeaderValue(LOCUTION).equalsIgnoreCase(DIE)) return "DIE"; else{ response=doRespond(myProcessor, messageReceived); if(response!=null) return "SEND"; else return "WAIT"; } };