public class CompositeStateBuilder<StateId,Event>
extends java.lang.Object
SubStateMachineBuilder.addCompositeState(Object)
. It differs from
StateBuilder
in that it contains an own SubStateMachineBuilder
that can be used to build the sub state machine.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.
|
SubStateMachineBuilder<StateId,Event> |
getStateMachineBuilder()
Get the state machine builder for this composite state.
|
CompositeStateBuilder<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 CompositeStateBuilder<StateId,Event> setEntryExitAction(IEntryExitAction<StateId,Event> action)
action
- The entry/exit action handler defined for this state.public SubStateMachineBuilder<StateId,Event> getStateMachineBuilder()