|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAchieveREResponder
CoPS.agents.HandleProblemSolvingRequestsBehaviour
This class represents the behaviour describing what to do when getting an ACL message with a problem solving request. Modified by Kari Roessland. The prepareResultNotification state of the AchieveREResponder protocol is taken care of by a new behaviour: PrepareResultBehaviour. By using the method registerPrepareResultNotification the datastore of this behaviour is set in our PrepareResultBehaviour. It is responsibility of this behaviour to put into the datastore (bound at the right key) the proper ACLMessage object to be sent by this responder. The proper key is RESULT_NOTIFICATION_KEY.
Constructor Summary | |
HandleProblemSolvingRequestsBehaviour(Agent agent,
MessageTemplate messageTemplate)
The constructor |
Method Summary | |
int |
onEnd()
Information from the last execution of this behaviour is reset and the behaviour is added to the agent again. |
protected ACLMessage |
prepareResponse(ACLMessage request)
In this method the agent informs the requester of the problem solving if it is willing to try solving the problem or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HandleProblemSolvingRequestsBehaviour(Agent agent, MessageTemplate messageTemplate)
agent
- the owner of this behaviourMethod Detail |
protected ACLMessage prepareResponse(ACLMessage request)
request
- The request message.
public int onEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |