Interface StateMachineModelFactory<S,E>

Type Parameters:
S - the type of state
E - the type of event
All Known Implementing Classes:
AbstractStateMachineModelFactory, RepositoryStateMachineModelFactory, UmlStateMachineModelFactory

public interface StateMachineModelFactory<S,E>
A generic builder interface for building StateMachineModels.
  • Method Details

    • build

      Builds the state machine model.
      Returns:
      the state machine model
    • build

      StateMachineModel<S,E> build(String machineId)
      Builds the state machine model with a given machineId. Implementation is free to choose what to do with a given machineId 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