|
Nested classes/interfaces inherited from class sajas.core.behaviours.Behaviour |
Behaviour.RunnableChangedEvent |
Fields inherited from class sajas.core.behaviours.CompositeBehaviour |
currentExecuted |
Fields inherited from class sajas.core.behaviours.Behaviour |
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING |
Constructor Summary | ||
SequentialBehaviour() Default constructor. |
||
SequentialBehaviour(Agent a) This constructor sets the owner agent for this behaviour. |
Method Summary | ||
void |
addSubBehaviour(Behaviour b) Add a sub behaviour to this SequentialBehaviour |
|
protected boolean |
checkTermination(boolean currentDone, int currentResult) Check whether this SequentialBehaviour must terminate. |
|
jade.util.leap.Collection |
getChildren() Return a Collection view of the children of this SequentialBehaviour |
|
protected Behaviour |
getCurrent() Get the current child |
|
void |
removeSubBehaviour(Behaviour b) Remove a sub behaviour from this SequentialBehaviour |
|
void |
reset() Puts a CompositeBehaviour back in initial state. |
|
protected void |
scheduleFirst() Prepare the first child for execution |
|
protected void |
scheduleNext(boolean currentDone, int currentResult) Sequential policy for children scheduling. |
|
void |
skipNext() |
Methods inherited from class sajas.core.behaviours.SerialBehaviour |
handle |
Methods inherited from class sajas.core.behaviours.CompositeBehaviour |
action, done, handleBlockEvent, handleRestartEvent, registerAsChild, resetChildren, setAgent |
Methods inherited from class sajas.core.behaviours.Behaviour |
actionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, isRunnable, onEnd, onStart, restart, root, setBehaviourName, setDataStore, setExecutionState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
onEnd()
) of the just executed child in the case this
child has completed (otherwise this parameter is meaningless)SequentialBehaviour
must terminate.onEnd()
) of the just executed child in the case this
child has completed (otherwise this parameter is meaningless)SequentialBehaviour
SequentialBehaviour
SequentialBehaviour
CompositeBehaviour
back in initial state. The
internal state is cleaned up and reset()
is
recursively called for each child behaviour.
|