|
||||||||||
| 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_RECRUITING_Initiator
public abstract class FIPA_RECRUITING_Initiator
Template for CFactories that manage fipa recruiting 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_RECRUITING_Initiator()
|
|
| Method Summary | |
|---|---|
protected void |
doBegin(CProcessor myProcessor,
ACLMessage msg)
Method executed at the beginning of the conversation |
protected void |
doFinalRecruitingInitiator(CProcessor myProcessor,
ACLMessage messageToSend)
Method executed when the conversation ends |
protected void |
doReceiveAgree(CProcessor myProcessor,
ACLMessage msg)
Method executed when the initiator receives an agree message |
protected void |
doReceiveFailureNoMatch(CProcessor myProcessor,
ACLMessage msg)
Method executed when the initiator receives a no match message |
protected void |
doReceiveFailureProxy(CProcessor myProcessor,
ACLMessage msg)
Method executed when the initiator receives a proxy failure message |
protected void |
doReceiveInform(CProcessor myProcessor,
ACLMessage msg)
Method executed when the initiator receives an inform message |
protected void |
doReceiveRefuse(CProcessor myProcessor,
ACLMessage msg)
Method executed when the initiator receives a refuse message |
CFactory |
newFactory(String name,
MessageFilter filter,
ACLMessage template,
int availableConversations,
CAgent myAgent,
long timeout)
Creates a new initiator fipa recruiting cfactory |
protected abstract void |
setProxyMessage(CProcessor myProcessor,
ACLMessage messageToSend)
Set the proxy message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FIPA_RECRUITING_Initiator()
| Method Detail |
|---|
protected void doBegin(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - first message to send
protected abstract void setProxyMessage(CProcessor myProcessor,
ACLMessage messageToSend)
myProcessor - the CProcessor managing the conversationmessageToSend - proxy message
protected void doReceiveRefuse(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - refuse message
protected void doReceiveAgree(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - agree message
protected void doReceiveFailureProxy(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - proxy failure message
protected void doReceiveFailureNoMatch(CProcessor myProcessor,
ACLMessage msg)
mmyProcessor - the CProcessor managing the conversationmsg - no match message
protected void doReceiveInform(CProcessor myProcessor,
ACLMessage msg)
myProcessor - the CProcessor managing the conversationmsg - inform message
protected void doFinalRecruitingInitiator(CProcessor myProcessor,
ACLMessage messageToSend)
myProcessor - the CProcessor managing the conversationmessageToSend - final message
public CFactory newFactory(String name,
MessageFilter filter,
ACLMessage template,
int availableConversations,
CAgent myAgent,
long timeout)
name - factory's namefilter - message filtertemplate - first message to sendavailableConversations - maximum conversation that can be managed by this CFactorymyAgent - agent owner of this CFactorytimeout - for waiting after sending the proxy message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||