public interface TransitionModel<S,E,C>
| Modifier and Type | Method and Description |
|---|---|
boolean |
fireEvent(StateMachine<S,E,C> machine,
E event,
C context)
Fires the event at the state machine.
|
boolean |
forceSetState(StateMachine<S,E,C> stateMachine,
S forcedState)
Forces the state machine to enter the forcedState even if there are no transitions to that state.
|
C |
getDefaultContext() |
java.util.Map<E,java.util.Collection<? extends Transition<S,C>>> |
getPossibleTransitions(S fromState) |
boolean fireEvent(StateMachine<S,E,C> machine, E event, C context)
machine - the machine to fire the event atevent - the event to firecontext - the context to use for transition conditions and actions. The context can be used to
supply arguments to actions.boolean forceSetState(StateMachine<S,E,C> stateMachine, S forcedState)
stateMachine - the state machine to force the state forforcedState - the state the machine will be in after this methodC getDefaultContext()
java.util.Map<E,java.util.Collection<? extends Transition<S,C>>> getPossibleTransitions(S fromState)