public static class FSMBuilder.FSMState extends FSMBehavior.State
| Modifier and Type | Field and Description |
|---|---|
groovy.lang.Closure<?> |
actionClosure |
groovy.lang.Closure<?> |
onEnterClosure |
java.util.Map<java.lang.Object,groovy.lang.Closure<?>> |
onEventClosures |
groovy.lang.Closure<?> |
onExitClosure |
java.util.List<WakerBehavior> |
timers |
java.util.List<WakerBehavior> |
tmpTimers |
fsm, log| Constructor and Description |
|---|
FSMState(java.lang.Object name) |
| Modifier and Type | Method and Description |
|---|---|
void |
action()
This method is repeatedly called when the state is active.
|
WakerBehavior |
after(java.lang.Number delay,
groovy.lang.Closure<?> c) |
void |
onEnter()
This method is called when the state is entered.
|
void |
onEvent(java.lang.Object event,
java.lang.Object info)
This method is called when an event is triggered.
|
void |
onExit()
This method is called when the state is exited.
|
block, block, getAgent, getCurrentState, getName, isBlocked, reenterState, restart, setNextState, terminate, toString, trigger, triggerpublic groovy.lang.Closure<?> onEnterClosure
public groovy.lang.Closure<?> actionClosure
public groovy.lang.Closure<?> onExitClosure
public java.util.Map<java.lang.Object,groovy.lang.Closure<?>> onEventClosures
public java.util.List<WakerBehavior> timers
public java.util.List<WakerBehavior> tmpTimers
public void onEnter()
FSMBehavior.StateonEnter in class FSMBehavior.Statepublic void action()
FSMBehavior.Stateaction in class FSMBehavior.Statepublic void onExit()
FSMBehavior.StateonExit in class FSMBehavior.Statepublic void onEvent(java.lang.Object event,
java.lang.Object info)
FSMBehavior.StateonEvent in class FSMBehavior.Stateevent - an object naming the event.info - an object providing extra information on the event.public WakerBehavior after(java.lang.Number delay, @DelegatesTo(value=FSMBuilder.FSMState.class,strategy=1) groovy.lang.Closure<?> c)