public abstract class SimpleBehavior extends java.lang.Object implements Behavior
Modifier and Type | Field and Description |
---|---|
protected boolean |
shouldYield
Informs the behavior whether it should yield control.
|
Constructor and Description |
---|
SimpleBehavior() |
Modifier and Type | Method and Description |
---|---|
void |
reset()
Reset the state of the behavior before it gains control.
|
void |
yieldControl()
Enjoin the behavior to yield control back to the system as fast as possible.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
claimsControl, gainControl, getPriority
protected boolean shouldYield
public void reset()
Behavior
public void yieldControl()
Behavior
yieldControl
in interface Behavior