public class StateResetter extends OneShotBehaviour
Constructor and Description |
---|
StateResetter()
Constructor.
|
StateResetter(java.lang.String[] states)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
action()
Runs the behaviour.
|
done
reset
block, block, getAgent, getBehaviourName, getDataStore, getParent, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore
public StateResetter(java.lang.String[] states)
states
- Represent the names of FSM's to reset.
If null the parent Behaviour is resettedpublic StateResetter()
public void action()
Behaviour
Behaviour
subclasses to perform ordinary behaviour
duty. An agent schedules its behaviours calling their
action()
method; since all the behaviours belonging
to the same agent are scheduled cooperatively, this method
must not enter in an endless loop and should return as
soon as possible to preserve agent responsiveness. To split a
long and slow task into smaller section, recursive behaviour
aggregation may be used.action
in class Behaviour
CompositeBehaviour