|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.pfl.basic.fsm.FSMImpl
public class FSMImpl
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.
| Constructor Summary | |
|---|---|
FSMImpl(StateEngine se,
State initialState)
|
|
| Method Summary | |
|---|---|
FSM |
getParent()
Get the parent state machine. |
State |
getState()
Return the current state. |
StateEngine |
getStateEngine()
Return the state engine used to create this FSM. |
void |
setParent(FSM fsm)
Set the parent state machine. |
void |
setState(State nextState)
Set the current state of this FSM. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FSMImpl(StateEngine se,
State initialState)
| Method Detail |
|---|
public FSM getParent()
FSM
getParent in interface FSMpublic void setParent(FSM fsm)
FSM
setParent in interface FSMpublic StateEngine getStateEngine()
FSM
getStateEngine in interface FSMpublic State getState()
getState in interface FSMpublic void setState(State nextState)
FSM
setState in interface FSM
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||