Magentix2
2.1.1
|
Public Member Functions | |
THOMASCAgentRequest (THOMASProxy thomasProxy) | |
Protected Member Functions | |
void | doInform (CProcessor myProcessor, ACLMessage msg) |
void | doAgree (CProcessor myProcessor, ACLMessage msg) |
void | doRefuse (CProcessor myProcessor, ACLMessage msg) |
void | doNotUnderstood (CProcessor myProcessor, ACLMessage msg) |
void | doFailure (CProcessor myProcessor, ACLMessage msg) |
Package Attributes | |
THOMASProxy | thomasProxy |
This class handles the messages received from the OMS or SF.
Definition at line 680 of file THOMASProxy.java.
es.upv.dsic.gti_ia.organization.THOMASProxy.THOMASCAgentRequest.THOMASCAgentRequest | ( | THOMASProxy | thomasProxy | ) |
Definition at line 684 of file THOMASProxy.java.
{ this.thomasProxy = thomasProxy; thomasProxy.setValue(""); }
void es.upv.dsic.gti_ia.organization.THOMASProxy.THOMASCAgentRequest.doAgree | ( | CProcessor | myProcessor, |
ACLMessage | msg | ||
) | [protected] |
Method to execute when the initiator receives an agree message
myProcessor | the CProcessor managing the conversation |
msg | agree message |
Reimplemented from es.upv.dsic.gti_ia.cAgents.protocols.FIPA_REQUEST_Initiator.
Definition at line 697 of file THOMASProxy.java.
{ logger.info(myProcessor.getMyAgent().getName() + ": OOH! " + msg.getSender().getLocalName() + " Has agreed to excute the service!"); }
void es.upv.dsic.gti_ia.organization.THOMASProxy.THOMASCAgentRequest.doFailure | ( | CProcessor | myProcessor, |
ACLMessage | msg | ||
) | [protected] |
Method to execute when the initiator receives a failure message
myProcessor | the CProcessor managing the conversation |
msg | failure message |
Reimplemented from es.upv.dsic.gti_ia.cAgents.protocols.FIPA_REQUEST_Initiator.
Definition at line 717 of file THOMASProxy.java.
{ logger.error(myProcessor.getMyAgent().getName() + ":" + msg.getSender().getLocalName() + " has send me a message which i wasn't" + " expecting in this conversation"); this.thomasProxy.setValue(""); }
void es.upv.dsic.gti_ia.organization.THOMASProxy.THOMASCAgentRequest.doInform | ( | CProcessor | myProcessor, |
ACLMessage | msg | ||
) | [protected, virtual] |
Method to execute when the initiator receives an inform message
myProcessor | |
msg |
Implements es.upv.dsic.gti_ia.cAgents.protocols.FIPA_REQUEST_Initiator.
Definition at line 689 of file THOMASProxy.java.
{ logger.info(myProcessor.getMyAgent().getName() + ":" + msg.getSender().getLocalName() + " has informed me of the status of my request." + " They said : " + msg.getContent()); this.thomasProxy.extractInfo(msg); }
void es.upv.dsic.gti_ia.organization.THOMASProxy.THOMASCAgentRequest.doNotUnderstood | ( | CProcessor | myProcessor, |
ACLMessage | msg | ||
) | [protected] |
Method to execute when the initiator receives a not-understood message
myProcessor | the CProcessor managing the conversation |
msg | not-understood message |
Reimplemented from es.upv.dsic.gti_ia.cAgents.protocols.FIPA_REQUEST_Initiator.
Definition at line 710 of file THOMASProxy.java.
{ logger.error(myProcessor.getMyAgent().getName() + ":" + msg.getSender().getLocalName() + " has indicated that they didn't understand."); this.thomasProxy.setValue(""); }
void es.upv.dsic.gti_ia.organization.THOMASProxy.THOMASCAgentRequest.doRefuse | ( | CProcessor | myProcessor, |
ACLMessage | msg | ||
) | [protected] |
Method to execute when the initiator receives a failure message
myProcessor | the CProcessor managing the conversation |
msg | failure message |
Reimplemented from es.upv.dsic.gti_ia.cAgents.protocols.FIPA_REQUEST_Initiator.
Definition at line 703 of file THOMASProxy.java.
{ logger.error(myProcessor.getMyAgent().getName() + ": Oh no! " + msg.getSender().getLocalName() + " has rejected my proposal."); this.thomasProxy.setValue(""); }
Definition at line 682 of file THOMASProxy.java.