|
||||||||||
| 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.Argumentation_Participant
public abstract class Argumentation_Participant
Abstract class that defines the argumentation participant protocol to be followed by the CAgents.
| Constructor Summary | |
|---|---|
Argumentation_Participant()
|
|
| Method Summary | |
|---|---|
protected abstract void |
doAccept(CProcessor myProcessor,
ACLMessage msgToSend)
Actions to perform and send an ACLMessage accepting the other agent's position or argument |
protected abstract String |
doAssert(CProcessor myProcessor,
ACLMessage msg,
String whyAgentID)
Try to assert a support argument to respond to the WHY received previously. |
protected abstract boolean |
doAttack(CProcessor myProcessor,
ACLMessage msgToSend,
ACLMessage msgReceived,
boolean defending)
Actions to perform to generate an attack argument against an attack or assert received |
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 message with locution DIE is received. |
protected abstract boolean |
doEnterDialogue(CProcessor myProcessor,
ACLMessage msg)
Evaluates if the agent can enter in the dialogue offering a solution. |
protected abstract void |
doFinishDialogue(CProcessor myProcessor,
ACLMessage msg)
Actions to be executed when the dialogue has to finish |
protected abstract void |
doGetPositions(CProcessor myProcessor,
ACLMessage msgReceived)
Get the positions of the agents in the dialogue sent by the Commitment Store as an object in the ACLMessage parameter |
protected abstract void |
doMyPositionAccepted(CProcessor myProcessor,
ACLMessage messageReceived)
Actions to perform when the position of the agent has been accepted. |
protected abstract void |
doNoCommit(CProcessor myProcessor,
ACLMessage msg)
Creates an ACLMessage to send with the locution NOCOMMIT |
protected abstract void |
doOpenDialogue(CProcessor myProcessor,
ACLMessage msg)
Takes the domain-case to solve and the dialogue ID from the ACLMessage given |
protected abstract boolean |
doPropose(CProcessor myProcessor,
ACLMessage msg)
Proposes a Position to defend in the dialogue. |
protected abstract void |
doQueryPositions(CProcessor myProcessor,
ACLMessage msg)
Creates a message to send to the Commitment Store with locution GETALLPOSITIONS to obtain all the positions of the dialogue |
protected abstract void |
doSendPosition(CProcessor myProcessor,
ACLMessage msg)
Sends an ACLMessage with the Position defended by the agent |
protected abstract void |
doSolution(CProcessor myProcessor,
ACLMessage msg)
Actions to perform when the final solution to the current problem to solve arrives in an ACLMessage |
protected abstract boolean |
doWhy(CProcessor myProcessor,
ACLMessage msg)
Choose a Position to send a WHY message if it can, or NOTHING |
CFactory |
newFactory(String name,
int availableConversations,
CAgent myAgent,
long stdTimeout,
long randTimeout)
Creates a new argumentation participant CFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Argumentation_Participant()
| Method Detail |
|---|
protected void doBegin(CProcessor myProcessor,
ACLMessage msg)
myProcessor - CProcessor that manage the conversationmsg - initial message
protected abstract void doOpenDialogue(CProcessor myProcessor,
ACLMessage msg)
ACLMessage given
myProcessor - CProcessor that manage the conversationmsg - ACLMessage with the domain-case to solve and the dialogue ID
protected abstract boolean doEnterDialogue(CProcessor myProcessor,
ACLMessage msg)
myProcessor - CProcessor that manage the conversationmsg - ACLMessage to send to Commitment Store, with locution ENTERDIALOGUE or WITHDRAWDIALOGUE
true if it makes an ENTERDIALOGUE, false if it makes a WITHDRAWDIALOGUE
protected abstract boolean doPropose(CProcessor myProcessor,
ACLMessage msg)
Position to defend in the dialogue. If it can not, it does a withdraw dialogue.
myProcessor - CProcessor that manage the conversationmsg - ACLMessage to send with the Position to propose (ADDPOSITION) or WITHDRAWDIALOGUE
true if it makes an ADDPOSITION, false if it makes a WITHDRAWDIALOGUE
protected abstract void doFinishDialogue(CProcessor myProcessor,
ACLMessage msg)
myProcessor - CProcessor that manage the conversationmsg - ACLMessage received with the locution FINISHDIALOGUE
protected abstract void doMyPositionAccepted(CProcessor myProcessor,
ACLMessage messageReceived)
myProcessor - CProcessor that manage the conversationmessageReceived - ACLMessage with the locution ACCEPT
protected abstract void doSendPosition(CProcessor myProcessor,
ACLMessage msg)
ACLMessage with the Position defended by the agent
myProcessor - CProcessor that manage the conversationmsg - an ACLMessage to send with the Position defended by the agent
protected abstract void doSolution(CProcessor myProcessor,
ACLMessage msg)
ACLMessage
myProcessor - CProcessor that manage the conversationmsg - an ACLMessage received with the solution to the current problem
protected abstract String doAssert(CProcessor myProcessor,
ACLMessage msg,
String whyAgentID)
myProcessor - CProcessor that manage the conversationmsg - an ACLMessage to send with an Argument and locution ASSERT, a locution NOCOMMIT, or a locution NOTHINGwhyAgentID - agent identifier that has made the WHY
String describing if it makes an ASSERT, NOCOMMIT or, WAIT_CENTRAL
protected abstract boolean doAttack(CProcessor myProcessor,
ACLMessage msgToSend,
ACLMessage msgReceived,
boolean defending)
myProcessor - CProcessor that manage the conversationmsgToSend - ACLMessage to send with the attack argument or a NOCOMMITmsgReceived - ACLMessage received with an attack or assertdefending - indicates if it is defending its position or attacking another agent position
true if an attack argument has been generated
protected abstract void doNoCommit(CProcessor myProcessor,
ACLMessage msg)
ACLMessage to send with the locution NOCOMMIT
myProcessor - CProcessor that manage the conversationmsg - ACLMessage to send with the locution NOCOMMIT
protected abstract void doQueryPositions(CProcessor myProcessor,
ACLMessage msg)
myProcessor - CProcessor that manage the conversationmsg - ACLMessage to send to the Commitment Store with locution GETALLPOSITIONS
protected abstract void doGetPositions(CProcessor myProcessor,
ACLMessage msgReceived)
ACLMessage parameter
myProcessor - CProcessor that manage the conversationmsg - ACLMessage with locution GETALLPOSITIONS and the positions of other agents in the dialogue
protected abstract boolean doWhy(CProcessor myProcessor,
ACLMessage msg)
Position to send a WHY message if it can, or NOTHING
myProcessor - CProcessor that manage the conversationmsg - ACLMessage to send a WHY, or NOTHING if there is not any Position to ask
false if it makes a NOTHING
protected abstract void doAccept(CProcessor myProcessor,
ACLMessage msgToSend)
ACLMessage accepting the other agent's position or argument
myProcessor - CProcessor that manage the conversationmsgToSend - ACLMessage accepting the other agent's position or argumentprotected abstract void doDie(CProcessor myProcessor)
myProcessor - CProcessor that manage the conversation
public CFactory newFactory(String name,
int availableConversations,
CAgent myAgent,
long stdTimeout,
long randTimeout)
name - factory's nameavailableConversations - maximum number of conversation this CFactory can manage simultaneouslymyAgent - agent owner of this CFactorystdTimeout - standard timeout to wait in wait statesrandTimeout - random timeout to wait in some states of the dialogue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||