|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSimpleBehaviour
teamSpace.agent.PrepareResultBehaviour
This behaviour is the last behaviour (state) in the FSMBehaviour
(final-state-machine) described by
the class TeamSpacePSBehaviour
. If this state is reached the problem solving in the Team Space
was successfull. The solution of the initial problem is plased in the datastore used by the TeamSpaceAgentBehaviour
,
and is therefor the response in the request-protocol defined by the TeamSpaceAgentBehaviour
.
Constructor Summary | |
PrepareResultBehaviour(Agent agent,
DataStore ds,
Behaviour topBehaviour,
java.lang.String teamID)
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 PrepareResultBehaviour(Agent agent, DataStore ds, Behaviour topBehaviour, java.lang.String teamID)
agent
- The agent which get this behaviourds
- The DataStore
used in this behaviourtopBehaviour
- A link to the Behaviour
which defines the request protocol that this behaviour is a part ofMethod Detail |
public void action()
public boolean done()
true
if the behaviour is done and false
if notpublic int onEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |