public class StateBuilder<StateId,Event>
extends java.lang.Object
SubStateMachineBuilder.addState(Object)
. It can be used to add
entry and exit actions to the created state.Modifier and Type | Method and Description |
---|---|
IEntryExitAction<StateId,Event> |
getEntryExitAction()
Get the callbacks that are called when the state is entered or exited.
|
StateId |
getId()
Get the id of the state.
|
StateBuilder<StateId,Event> |
setEntryExitAction(IEntryExitAction<StateId,Event> action)
Set the callbacks that are called when the state is entered or exited.
|
public StateId getId()
public IEntryExitAction<StateId,Event> getEntryExitAction()
setEntryExitAction
method.public StateBuilder<StateId,Event> setEntryExitAction(IEntryExitAction<StateId,Event> action)
action
- The entry/exit action handler defined for this state.