public class SynchronizedStateMachine extends DeterministicStateMachine
Processor.process(Event),
StateMachine.getActiveState(),
StateMachine.getActiveStates(),
StateMachine.isInFinalState()loggerINITIAL_STATE_NAME| Constructor and Description |
|---|
SynchronizedStateMachine(java.lang.String name)
Create the object.
|
| Modifier and Type | Method and Description |
|---|---|
State |
getActiveState()
Get the currently active state.
|
java.util.Set<State> |
getActiveStates()
Get the currently active states.
|
boolean |
isInFinalState()
Is the active state a final state?
|
Event |
process(Event event)
Process the event.
|
addListener, addListener, addPreprocessor, addState, addTransition, close, easterEgg, getStates, getTransition, getTransitions, notifyEnter, notifyExit, notifyTransition, setStartState, start, toStringgetNamepublic SynchronizedStateMachine(java.lang.String name)
name - the name of the state machinepublic Event process(Event event) throws FsmException
Processorprocess in interface Processorprocess in class DeterministicStateMachineevent - the input eventFsmException - if something failspublic State getActiveState()
StateMachinegetActiveState in interface StateMachinegetActiveState in class DeterministicStateMachineStateMachine.getActiveStates()public java.util.Set<State> getActiveStates()
StateMachinegetActiveStates in interface StateMachinegetActiveStates in class DeterministicStateMachineStateMachine.getActiveState()public boolean isInFinalState()
StateMachineisInFinalState in interface StateMachineisInFinalState in class DeterministicStateMachineCopyright 2013 Michal Turek, AnotherFSM.