|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSimpleBehaviour
CoPS.agents.TaskResponsibleResponseBehaviour
This class represents a behaviour returning a state describing how the problem solvig process went. Modified by Kari Roessland: The class is separated from the CoPSTaskResponsibleClass. And it is modified so that the return message - containing the solution to the problem is placed in the right datastore with the right KEY. In the previous working this message was never returned.
Constructor Summary | |
TaskResponsibleResponseBehaviour(Agent agent,
DataStore ds,
Behaviour topBehaviour)
The constructor. |
Method Summary | |
void |
action()
The action method prepares and put the result/solution in the proper datastore; the datastore of the HandleProblemSolvingRequestBehaviour. |
boolean |
done()
The agent scheduler calls this method to see whether a Behaviour still need to be run or it has completed its task. |
int |
onEnd()
This method is called when the behaviour has finished. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TaskResponsibleResponseBehaviour(Agent agent, DataStore ds, Behaviour topBehaviour)
agent
- The owner of the behaviour.ds
- The datastore to be set in this behaviour.topBehaviour
- The Behviour where this one was added to the behaviour-pool.Method Detail |
public void action()
public boolean done()
public int onEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |