|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.util.state.State
The respresentation of a state in a state machine.
Constructor Summary | |
State(String name)
|
|
State(String name,
Map transitions)
|
Method Summary | |
void |
addTransition(Transition transition)
Add a transition to the allowed transition map. |
Object |
getData()
|
String |
getName()
Get the state name. |
Transition |
getTransition(String name)
Lookup an allowed transition given its name. |
Map |
getTransitions()
Get the Map |
boolean |
isAcceptState()
An accept state is indicated by no transitions |
void |
setData(Object data)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public State(String name)
public State(String name, Map transitions)
Method Detail |
public String getName()
public Object getData()
public void setData(Object data)
public boolean isAcceptState()
public void addTransition(Transition transition)
transition
- public Transition getTransition(String name)
name
- - the name of a valid transition from this state.
public Map getTransitions()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |