|
||||||||||
| 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.CommitmentStore_Protocol
public abstract class CommitmentStore_Protocol
Abstract class that defines the protocol that the Commitment Store follows to attend the petitions of the agents.
| Constructor Summary | |
|---|---|
CommitmentStore_Protocol()
|
|
| Method Summary | |
|---|---|
protected void |
doBegin(CProcessor myProcessor,
ACLMessage msg)
Begin method executed to begin the conversation |
protected abstract void |
doDie(CProcessor myProcessor)
Actions to perform when the DIE message is received. |
protected abstract ACLMessage |
doRespond(CProcessor myProcessor,
ACLMessage msgReceived)
Creates a response depending on the petition received previously in the ACLMessage parameter |
CFactory |
newFactory(String name,
int availableConversations,
CAgent myAgent)
Creates a new commitment store protocol CFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommitmentStore_Protocol()
| Method Detail |
|---|
protected void doBegin(CProcessor myProcessor,
ACLMessage msg)
myProcessor - CProcessor that manage the conversationmsg - initial message
protected abstract ACLMessage doRespond(CProcessor myProcessor,
ACLMessage msgReceived)
ACLMessage parameter
myProcessor - CProcessor that manage the conversationmsgReceived - ACLMessage received as a petition by other agent
ACLMessage with the response to give or null if it is not necessary to respondprotected abstract void doDie(CProcessor myProcessor)
myProcessor - CProcessor that manage the conversation
public CFactory newFactory(String name,
int availableConversations,
CAgent myAgent)
CFactory
name - factory's nameavailableConversations - 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 | |||||||||