|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.fsm.TransitionHandler
public class TransitionHandler
A handler that simply returns an arbitrary state transition.
Constructor Summary | |
---|---|
TransitionHandler(int state)
Creates a transition handler that will return the specified state when processed. |
Method Summary | |
---|---|
int |
getTransitionState()
Returns the transition state value. |
int |
handleMessage(int state,
int message,
java.lang.Object stateInfo)
Returns the TransitionHandler's state value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransitionHandler(int state)
Method Detail |
---|
public int getTransitionState()
public int handleMessage(int state, int message, java.lang.Object stateInfo)
handleMessage
in interface StateHandler
state
- The current state the called this handler.message
- The numeric message to be handled.stateInfo
- The application specific data on which the handler
can operate if necessary.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |