|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAchieveREInitiator
CoPS.agents.GetDecompositionBehaviour
This class represents a behaviour specifying the process of getting a decomposition of a problem. The Task Responsible starts a conversation with the Decomposer agent. Modified by Kari Roessland.
Constructor Summary | |
GetDecompositionBehaviour(Agent agent,
ACLMessage message)
The constructor only calls the super-class AchieveREInitiatior |
Method Summary | |
protected void |
handleAgree(ACLMessage agree)
This method is called when the agent running this behaviour accepts an agree message. |
protected void |
handleFailure(ACLMessage failure)
Called if a failure message is received. |
protected void |
handleInform(ACLMessage inform)
Called if the responder responds with an inform message containing the decomposition. |
protected void |
handleNotUnderstood(ACLMessage notUnderstood)
This method is called when the agent running this behaviour gets a not-understood message. |
protected void |
handleRefuse(ACLMessage refuse)
Called if one of the contacted decomposers refuses decomposing the requested task. |
int |
onEnd()
Method called after the behaviour is removed from the behaviour pool. |
protected java.util.Vector |
prepareRequests(ACLMessage request)
Method which has to be implemented to set the request message to be sent dynamic in run-time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GetDecompositionBehaviour(Agent agent, ACLMessage message)
agent
- The owner of this behaviourmessage
- The default request message.Method Detail |
protected java.util.Vector prepareRequests(ACLMessage request)
request
- The default request message.
protected void handleAgree(ACLMessage agree)
agree
- An agree message.protected void handleNotUnderstood(ACLMessage notUnderstood)
notUnderstood
- A not-understood message.protected void handleRefuse(ACLMessage refuse)
protected void handleInform(ACLMessage inform)
inform
- An inform message.protected void handleFailure(ACLMessage failure)
failure
- A failure messagepublic int onEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |