S
- the type of stateE
- the type of eventpublic static class StateMachineBuilder.Builder<S,E>
extends java.lang.Object
Builder
implementation handling logic of building
a StateMachine
manually.Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
StateMachine<S,E> |
build()
Builds a
StateMachine . |
StateMachineConfigurationConfigurer<S,E> |
configureConfiguration()
Configure configuration.
|
StateMachineModelConfigurer<S,E> |
configureModel()
Configure model.
|
StateMachineStateConfigurer<S,E> |
configureStates()
Configure states.
|
StateMachineTransitionConfigurer<S,E> |
configureTransitions()
Configure transitions.
|
StateMachineFactory<S,E> |
createFactory()
Creates a
StateMachineFactory from builder |
public StateMachineModelConfigurer<S,E> configureModel()
public StateMachineConfigurationConfigurer<S,E> configureConfiguration()
public StateMachineStateConfigurer<S,E> configureStates()
public StateMachineTransitionConfigurer<S,E> configureTransitions()
public StateMachineFactory<S,E> createFactory()
StateMachineFactory
from builderpublic StateMachine<S,E> build()
StateMachine
.