public class MutableTransitionModelImpl<S,E,C> extends AbstractTransitionModel<S,E,C> implements MutableTransitionModel<S,E,C>
defaultContext, enterActions, eventClass, exitActions, fromAllTransitions, stateClass, transitionMap| Modifier and Type | Method and Description |
|---|---|
void |
addEntryAction(S entryState,
Action<S,E,C> action) |
void |
addExitAction(S exitState,
Action<S,E,C> action) |
void |
addFromAllTransition(S to,
E event,
Condition<C> condition,
java.util.List<Action<S,E,C>> actions) |
void |
addTransition(S from,
S to,
E event,
Condition<C> condition,
java.util.List<Action<S,E,C>> actions) |
static <S,E,C> MutableTransitionModelImpl<S,E,C> |
create(java.lang.Class<S> stateClass,
java.lang.Class<E> eventClass) |
static <S,E,C> MutableTransitionModelImpl<S,E,C> |
create(java.lang.Class<S> stateClass,
java.lang.Class<E> eventClass,
C defaultContext) |
StateMachineTemplate<S,E,C> |
createImmutableClone() |
StateMachine<S,E,C> |
newStateMachine(S init)
Creates a new state machine using the transition model as a template
|
StateMachine<S,E,C> |
newStateMachine(S init,
java.util.concurrent.locks.Lock lock) |
createMap, fireEvent, forceSetState, getDefaultContext, getFromAllTransitions, getPossibleTransitions, getStateTransitionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfireEvent, forceSetState, getDefaultContext, getPossibleTransitionspublic static <S,E,C> MutableTransitionModelImpl<S,E,C> create(java.lang.Class<S> stateClass, java.lang.Class<E> eventClass, C defaultContext)
public static <S,E,C> MutableTransitionModelImpl<S,E,C> create(java.lang.Class<S> stateClass, java.lang.Class<E> eventClass)
public StateMachine<S,E,C> newStateMachine(S init)
StateMachineTemplatenewStateMachine in interface StateMachineTemplate<S,E,C>init - the state the machine will be in when createdpublic StateMachine<S,E,C> newStateMachine(S init, java.util.concurrent.locks.Lock lock)
newStateMachine in interface StateMachineTemplate<S,E,C>public StateMachineTemplate<S,E,C> createImmutableClone()
createImmutableClone in interface MutableTransitionModel<S,E,C>public void addTransition(S from, S to, E event, Condition<C> condition, java.util.List<Action<S,E,C>> actions)
addTransition in interface MutableTransitionModel<S,E,C>public void addFromAllTransition(S to, E event, Condition<C> condition, java.util.List<Action<S,E,C>> actions)
addFromAllTransition in interface MutableTransitionModel<S,E,C>public void addEntryAction(S entryState, Action<S,E,C> action)
addEntryAction in interface MutableTransitionModel<S,E,C>public void addExitAction(S exitState, Action<S,E,C> action)
addExitAction in interface MutableTransitionModel<S,E,C>