Interface StateMachineFactory<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Known Implementing Classes:
AbstractStateMachineFactory
,ObjectStateMachineFactory
public interface StateMachineFactory<S,E>
StateMachineFactory
is a strategy interface building StateMachine
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic <S,
E> ObjectStateMachineFactory<S, E> create
(StateMachineConfigBuilder<S, E> builder) Build a newStateMachine
instance.getStateMachine
(String machineId) Build a newStateMachine
instance with a given machine id.getStateMachine
(UUID uuid) Build a newStateMachine
instance with a given machine uuid.
-
Method Details
-
getStateMachine
StateMachine<S,E> getStateMachine()Build a newStateMachine
instance.- Returns:
- a new state machine instance.
-
getStateMachine
Build a newStateMachine
instance with a given machine id.- Parameters:
machineId
- the machine id- Returns:
- a new state machine instance.
-
getStateMachine
Build a newStateMachine
instance with a given machine uuid.- Parameters:
uuid
- to be used internally- Returns:
- a new state machine instance.
-
create
-