|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.state.StateMachine
The representation of a finite state machine.
Constructor Summary | |
StateMachine(java.util.Set states,
State (src) startState)
Create a state machine given its states and start state. |
|
StateMachine(java.util.Set states,
State (src) startState,
java.lang.String description)
Create a state machine given its states and start state. |
Method Summary | |
java.lang.Object |
clone()
Make a copy of the StateMachine maintaining the current state. |
State (src) |
getCurrentState()
Get the current state of the state machine. |
java.lang.String |
getDescription()
Get the state machine description. |
State (src) |
getStartState()
Get the start state of the state machine. |
java.util.Set |
getStates()
Get the states of the state machine. |
State (src) |
nextState(java.lang.String actionName)
Transition to the next state given the name of a valid transition. |
State (src) |
reset()
Reset the state machine back to the start state |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StateMachine(java.util.Set states, State (src) startState)
states
- - SetstartState
- - the starting statepublic StateMachine(java.util.Set states, State (src) startState, java.lang.String description)
states
- - SetstartState
- - the starting statedescription
- - an optional description of the state machineMethod Detail |
public java.lang.Object clone()
public java.lang.String getDescription()
public State (src) getCurrentState()
public State (src) getStartState()
public java.util.Set getStates()
public State (src) nextState(java.lang.String actionName) throws IllegalTransitionException (src)
actionName
- - the name of transition that is valid for the
current state.
IllegalTransitionException (src)
public State (src) reset()
public java.lang.String toString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |