|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp2pMapReduce.nodeModule.nodeFsm.FSM
public class FSM
Base class for a finite state machine. Each finite state machine has a current state. The only function is the transition from the current state to the new current state.
Constructor Summary | |
---|---|
FSM()
|
Method Summary | |
---|---|
State |
currentState()
|
void |
transition(State nextState)
Make the FSM to transit to nextState
Calls State.exitAction() on the current state, update the current
state and calls on it State.entryAction() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSM()
Method Detail |
---|
public void transition(State nextState)
nextState
Calls State.exitAction()
on the current state, update the current
state and calls on it State.entryAction()
nextState
- public State currentState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |