S
- the type of stateE
- the type of eventpublic interface StateMachineFactory<S,E>
StateMachineFactory
is a strategy interface building StateMachine
s.Modifier and Type | Method and Description |
---|---|
StateMachine<S,E> |
getStateMachine()
Build a new
StateMachine instance. |
StateMachine<S,E> |
getStateMachine(java.lang.String machineId)
Build a new
StateMachine instance
with a given machine id. |
StateMachine<S,E> |
getStateMachine(java.util.UUID uuid)
Build a new
StateMachine instance
with a given machine uuid. |
StateMachine<S,E> getStateMachine()
StateMachine
instance.StateMachine<S,E> getStateMachine(java.lang.String machineId)
StateMachine
instance
with a given machine id.machineId
- the machine idStateMachine<S,E> getStateMachine(java.util.UUID uuid)
StateMachine
instance
with a given machine uuid.uuid
- to be used internally