S
- the type of stateE
- the type of eventpublic interface StateMachineAccessor<S,E>
StateMachine
to allow more programmatic
access to underlying functionality. Functions prefixed "doWith" will expose
StateMachineAccess
via StateMachineFunction
for better functional
access with jdk7. Functions prefixed "with" is better suitable for lambdas.Modifier and Type | Method and Description |
---|---|
void |
doWithAllRegions(StateMachineFunction<StateMachineAccess<S,E>> stateMachineAccess)
Execute given
StateMachineFunction with all recursive regions. |
void |
doWithRegion(StateMachineFunction<StateMachineAccess<S,E>> stateMachineAccess)
Execute given
StateMachineFunction with a region. |
java.util.List<StateMachineAccess<S,E>> |
withAllRegions()
Gets all regions.
|
StateMachineAccess<S,E> |
withRegion()
Get a region.
|
void doWithAllRegions(StateMachineFunction<StateMachineAccess<S,E>> stateMachineAccess)
StateMachineFunction
with all recursive regions.stateMachineAccess
- the state machine accessjava.util.List<StateMachineAccess<S,E>> withAllRegions()
void doWithRegion(StateMachineFunction<StateMachineAccess<S,E>> stateMachineAccess)
StateMachineFunction
with a region.stateMachineAccess
- the state machine accessStateMachineAccess<S,E> withRegion()