Magentix2  2.1.1
es.upv.dsic.gti_ia.organization.THOMASProxy.THOMASCAgentRequest Class Reference
Inheritance diagram for es.upv.dsic.gti_ia.organization.THOMASProxy.THOMASCAgentRequest:
Collaboration diagram for es.upv.dsic.gti_ia.organization.THOMASProxy.THOMASCAgentRequest:

List of all members.

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

Detailed Description

This class handles the messages received from the OMS or SF.

Definition at line 680 of file THOMASProxy.java.


Constructor & Destructor Documentation


Member Function Documentation

Method to execute when the initiator receives an agree message

Parameters:
myProcessorthe CProcessor managing the conversation
msgagree 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!");
                }

Method to execute when the initiator receives a failure message

Parameters:
myProcessorthe CProcessor managing the conversation
msgfailure 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("");
                }

Method to execute when the initiator receives an inform message

Parameters:
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);
                }

Method to execute when the initiator receives a not-understood message

Parameters:
myProcessorthe CProcessor managing the conversation
msgnot-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("");
                }

Method to execute when the initiator receives a failure message

Parameters:
myProcessorthe CProcessor managing the conversation
msgfailure 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("");
                }

Member Data Documentation


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