public class TimeoutStateMachine extends SynchronizedStateMachine
TimeoutEvent,
start(),
close()| Modifier and Type | Field and Description |
|---|---|
protected FsmLogger |
logger
The logger.
|
INITIAL_STATE_NAME| Constructor and Description |
|---|
TimeoutStateMachine(java.lang.String name)
Create the state machine.
|
TimeoutStateMachine(java.lang.String name,
boolean daemon)
Create the state machine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Finish processing of the events and free all allocated resources.
|
java.lang.String |
getName()
Get the name of the processor.
|
void |
start()
Building of the processor is finished, prepare it to the events
processing.
|
getActiveState, getActiveStates, isInFinalState, processaddListener, addListener, addPreprocessor, addState, addTransition, easterEgg, getStates, getTransition, getTransitions, setStartState, toStringprotected final FsmLogger logger
public TimeoutStateMachine(java.lang.String name)
name - the name of the state machinepublic TimeoutStateMachine(java.lang.String name,
boolean daemon)
name - the name of the state machinedaemon - the inner thread used for timer is a daemon threadThreadpublic void start()
throws FsmException
Processorstart in interface Processorstart in interface StateMachinestart in class DeterministicStateMachineFsmException - if something failsProcessor.close()public void close()
ProcessorProcessor.close() should be
avoided. The behavior is not defined and may cause unpredictable
behavior, e.g. NullPointerException.close in interface java.lang.AutoCloseableclose in interface Processorclose in interface StateMachineclose in class DeterministicStateMachineProcessor.start()Copyright 2012-2013 Michal Turek, AnotherFSM.