Interface StateMachineModelFactory<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Known Implementing Classes:
AbstractStateMachineModelFactory
,RepositoryStateMachineModelFactory
,UmlStateMachineModelFactory
public interface StateMachineModelFactory<S,E>
A generic builder interface for building
StateMachineModel
s.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the state machine model.Builds the state machine model with a givenmachineId
.
-
Method Details
-
build
StateMachineModel<S,E> build()Builds the state machine model.- Returns:
- the state machine model
-
build
Builds the state machine model with a givenmachineId
. Implementation is free to choose what to do with a givenmachineId
but usually it might map to a different configurations supported by storage or repository in a factory.- Parameters:
machineId
- the machine id- Returns:
- the state machine model
-