|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.cAgents.protocols.FIPA_REQUEST_Initiator
public abstract class FIPA_REQUEST_Initiator
Template for CFactories that manage fipa request initiator conversation. The user has to create his/her own class extending from this one. And implement the abstract methods. Other methods can be overriden in order to modify the default behaviour
| Constructor Summary | |
|---|---|
FIPA_REQUEST_Initiator()
|
|
| Method Summary | |
|---|---|
protected void |
doAgree(CProcessor myProcessor,
ACLMessage msg)
Method to execute when the initiator receives an agree message |
protected void |
doBegin(CProcessor myProcessor,
ACLMessage msg)
Method to execute at the beginning of the conversation |
protected void |
doFailure(CProcessor myProcessor,
ACLMessage msg)
Method to execute when the initiator receives a failure message |
protected void |
doFinal(CProcessor myProcessor,
ACLMessage messageToSend)
Method to execute when the initiator ends the conversation |
protected abstract void |
doInform(CProcessor myProcessor,
ACLMessage msg)
Method to execute when the initiator receives an inform message |
protected void |
doNotUnderstood(CProcessor myProcessor,
ACLMessage msg)
Method to execute when the initiator receives a not-understood message |
protected void |
doRefuse(CProcessor myProcessor,
ACLMessage msg)
Method to execute when the initiator receives a failure message |
protected void |
doRequest(CProcessor myProcessor,
ACLMessage messageToSend)
Sets the request message |
protected void |
doSecondWait(CProcessor myProcessor,
ACLMessage msg)
Method to execute when the timeout is reached |
CFactory |
newFactory(String name,
MessageFilter filter,
ACLMessage requestMessage,
int availableConversations,
CAgent myAgent,
long timeout)
Creates a new initiator fipa request cfactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FIPA_REQUEST_Initiator()
| Method Detail |
|---|
protected void doBegin(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - first message to send
protected void doRequest(CProcessor myProcessor,
ACLMessage messageToSend)
myProcessor - the CProcessor managing the conversationmessageToSend - request message
protected void doNotUnderstood(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - not-understood message
protected void doRefuse(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - failure message
protected void doAgree(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - agree message
protected void doSecondWait(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - timeout message
protected void doFailure(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - failure message
protected abstract void doInform(CProcessor myProcessor,
ACLMessage msg)
myProcessor - msg -
protected void doFinal(CProcessor myProcessor,
ACLMessage messageToSend)
myProcessor - messageToSend -
public CFactory newFactory(String name,
MessageFilter filter,
ACLMessage requestMessage,
int availableConversations,
CAgent myAgent,
long timeout)
name - factory's namefilter - message filterrequestMessage - first message to sendavailableConversations - maximum number of conversation this CFactory can manage simultaneouslymyAgent - agent owner of this CFactorytimeout - for waiting after sending the request message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||