|
||||||||||
| 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_Participant
public abstract class FIPA_REQUEST_Participant
Template for CFactories that manage fipa request participant 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_Participant()
|
|
| Method Summary | |
|---|---|
protected abstract String |
doAction(CProcessor myProcessor)
Perform the requested action |
protected void |
doAgree(CProcessor myProcessor,
ACLMessage messageToSend)
Sets the agree message |
protected void |
doBegin(CProcessor myProcessor,
ACLMessage msg)
Method executed at the beginning of the conversation |
protected void |
doFailure(CProcessor myProcessor,
ACLMessage messageToSend)
Sets the failure message |
protected void |
doFinal(CProcessor myProcessor,
ACLMessage messageToSend)
Method executed when the conversation ends |
protected abstract void |
doInform(CProcessor myProcessor,
ACLMessage response)
Sets the inform message |
protected void |
doNotUnderstood(CProcessor myProcessor,
ACLMessage messageToSend)
Sets the not-understood message |
protected abstract String |
doReceiveRequest(CProcessor myProcessor,
ACLMessage request)
Method executed when the initiator receives the request |
protected void |
doRefuse(CProcessor myProcessor,
ACLMessage messageToSend)
Sets the refuse message |
CFactory |
newFactory(String name,
MessageFilter filter,
int availableConversations,
CAgent myAgent)
Creates a new participant fipa request factory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FIPA_REQUEST_Participant()
| Method Detail |
|---|
protected void doBegin(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - first message assigned to this conversation
protected abstract String doReceiveRequest(CProcessor myProcessor,
ACLMessage request)
myProcessor - the CProcessor managing the conversationrequest - request message
protected void doNotUnderstood(CProcessor myProcessor,
ACLMessage messageToSend)
myProcessor - the CProcessor managing the conversationmessageToSend - not-understood message
protected void doRefuse(CProcessor myProcessor,
ACLMessage messageToSend)
myProcessor - messageToSend -
protected void doAgree(CProcessor myProcessor,
ACLMessage messageToSend)
myProcessor - the CProcessor managing the conversationmessageToSend - agree messageprotected abstract String doAction(CProcessor myProcessor)
myProcessor - the CProcessor managing the conversation
protected void doFailure(CProcessor myProcessor,
ACLMessage messageToSend)
myProcessor - the CProcessor managing the conversationmessageToSend - failure message
protected abstract void doInform(CProcessor myProcessor,
ACLMessage response)
myProcessor - the CProcessor managing the conversationresponse - inform message
protected void doFinal(CProcessor myProcessor,
ACLMessage messageToSend)
myProcessor - the CProcessor managing the conversationmessageToSend - final message
public CFactory newFactory(String name,
MessageFilter filter,
int availableConversations,
CAgent myAgent)
name - factory's namefilter - message filteravailableConversations - maximum number of conversation this CFactory can manage simultaneouslymyAgent - agent owner of this CFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||