public abstract class OneShotBehaviour extends SimpleBehaviour
Constructor and Description |
---|
OneShotBehaviour()
Default constructor.
|
OneShotBehaviour(Agent a)
This constructor sets the owner agent for this
OneShotBehaviour . |
Modifier and Type | Method and Description |
---|---|
boolean |
done()
This is the method that makes
OneShotBehaviour
one-shot, because it always returns true . |
reset
action, block, block, getAgent, getBehaviourName, getDataStore, getParent, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore
public OneShotBehaviour()
public OneShotBehaviour(Agent a)
OneShotBehaviour
.a
- The agent this behaviour belongs to.