public class OneShotBehavior extends Behavior
Behavior.action()
method of this
behavior is called only once.Constructor and Description |
---|
OneShotBehavior()
Creates a behavior that is executed only once.
|
OneShotBehavior(java.lang.Runnable runnable)
Creates a behavior that is executed only once.
|
Modifier and Type | Method and Description |
---|---|
boolean |
done()
This method always returns true, since this behavior is called only once.
|
action, agent, agentForService, agentForService, agentsForService, agentsForService, block, block, compareTo, getPriority, isBlocked, onEnd, onStart, println, reset, restart
public OneShotBehavior()
public OneShotBehavior(java.lang.Runnable runnable)
runnable
- Runnable to run.public final boolean done()
done
in class Behavior
Behavior.done()