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.
-
Field Summary
Fields -
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.
-
Field Details
-
parent
-
state
-
stateEngine
-
-
Constructor Details
-
FSMImpl
-
-
Method Details
-
getParent
-
setParent
-
getStateEngine
Description copied from interface:FSMReturn the state engine used to create this FSM.- Specified by:
getStateEnginein interfaceFSM
-
getState
-
setState
-