public interface FiniteStateMachine
| Modifier and Type | Method and Description |
|---|---|
State |
fire(Event event)
Fire an event.
|
State |
getCurrentState()
Return current FSM state.
|
Set<State> |
getFinalStates()
Return FSM final states.
|
State |
getInitialState()
Return FSM initial state.
|
Event |
getLastEvent()
Return the last triggered event.
|
Transition |
getLastTransition()
Return the last transition made.
|
Set<State> |
getStates()
Return FSM registered states.
|
Set<Transition> |
getTransitions()
Return FSM registered transitions.
|
State getCurrentState()
State getInitialState()
Set<Transition> getTransitions()
Event getLastEvent()
Transition getLastTransition()
State fire(Event event) throws FiniteStateMachineException
event - to fireFiniteStateMachineException - thrown if an exception occurs during event handlingCopyright © 2020. All rights reserved.