|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAchieveREResponder
CoPS.agents.ProblemSolvingBehaviour
This class and behaviour assist a problem solving agent in the problem solving process by supporting a conversation with the TeamSpaceAgent.
Constructor Summary | |
ProblemSolvingBehaviour(Agent agent,
MessageTemplate template)
The constructor only calls the super-constructor. |
Method Summary | |
int |
onEnd()
Information from the last execution of this behaviour is reset. |
protected ACLMessage |
prepareResponse(ACLMessage request)
The agent desides if it can perform the action and prepares a response telling this. |
protected ACLMessage |
prepareResultNotification(ACLMessage request,
ACLMessage response)
The agent prepares the output from the action and returns it to the requester (TeamSpaceAgent). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProblemSolvingBehaviour(Agent agent, MessageTemplate template)
agent
- The owner of this behaviourtemplate
- The template used as a filter to get the correct request message.Method Detail |
protected ACLMessage prepareResponse(ACLMessage request)
request
- The incoming request message (request for performing an action).
protected ACLMessage prepareResultNotification(ACLMessage request, ACLMessage response)
request
- The request message.response
- The agent's response to the request message.
public int onEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |