Package org.glassfish.pfl.basic.fsm
Class FSMImpl
java.lang.Object
org.glassfish.pfl.basic.fsm.FSMImpl
- All Implemented Interfaces:
FSM
This is the main class that represents an instance of a state machine
using a state engine. It may be used as a base class, in which case
the guards and actions have access to the derived class.
Note that this is optional; an FSM implementation may directly
implement the FSM interface if desired.
- Author:
- Ken Cavanaugh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the parent state machine.getState()Return the current state.Return the state engine used to create this FSM.voidSet the parent state machine.voidSet the current state of this FSM.
-
Constructor Details
-
FSMImpl
-
-
Method Details
-
getParent
Description copied from interface:FSMGet the parent state machine. -
setParent
Description copied from interface:FSMSet the parent state machine. -
getStateEngine
Description copied from interface:FSMReturn the state engine used to create this FSM.- Specified by:
getStateEnginein interfaceFSM
-
getState
Return the current state. -
setState
Description copied from interface:FSMSet the current state of this FSM. May not be called inside a transition action, or from a State method. Only here for use by the StateEngine.
-