public class Fettle
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <S,E,C> StateMachineBuilder<S,E,C> |
newBuilder(java.lang.Class<S> stateClass,
java.lang.Class<E> eventClass)
Constructs a new builder object to simplify the construction of state machines
|
static <S,E,C> MutableTransitionModel<S,E,C> |
newTransitionModel(java.lang.Class<S> stateClass,
java.lang.Class<E> eventClass)
Constructs a new transition model that holds the definition for a state machine
|
public static <S,E,C> MutableTransitionModel<S,E,C> newTransitionModel(java.lang.Class<S> stateClass, java.lang.Class<E> eventClass)
S - the type of the states in the machineE - the type of the events triggering state transitionsstateClass - the class of the states in the machineeventClass - the class of the events triggering state transitionspublic static <S,E,C> StateMachineBuilder<S,E,C> newBuilder(java.lang.Class<S> stateClass, java.lang.Class<E> eventClass)
S - the type of the states in the machineE - the type of the events triggering state transitionsC - the type of the context sent to actions and conditionsstateClass - the class of the states in the machineeventClass - the class of the events triggering state transitions