|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.scxml.model.TransitionTarget
org.apache.commons.scxml.model.State
The class in this SCXML object model that corresponds to the <state> SCXML element.
Constructor Summary | |
State()
Constructor. |
Method Summary | |
void |
addChild(State state)
Add a child state. |
void |
addHistory(History h)
This method is used by XML digester. |
void |
addTransition(Transition transition)
Add a transition to the map of all outgoing transitions for this state. |
Map |
getChildren()
Get the map of child states (may be empty). |
List |
getHistory()
Get the list of history pseudo states for this state. |
Initial |
getInitial()
Get the initial state. |
Invoke |
getInvoke()
Get the Invoke child (may be null). |
boolean |
getIsFinal()
Is this state a "final" state. |
Parallel |
getParallel()
Get the Parallel child (may be null). |
Map |
getTransitions()
Get the map of all outgoing transitions from this state. |
List |
getTransitionsList()
Get the outgoing transitions for this state as a java.util.List. |
List |
getTransitionsList(String event)
Get the list of all outgoing transitions from this state, that will be candidates for being fired on the given event. |
boolean |
hasHistory()
Does this state have a history pseudo state. |
boolean |
isComposite()
Check whether this is a composite state (UML terminology). |
boolean |
isDone()
In case this is a parallel state, check if one its final states is active. |
boolean |
isOrthogonal()
Checks whether it is a orthogonal state, that is, it owns a parallel (UML terminology). |
boolean |
isRegion()
Checks whether it is a region state (directly nested to parallel - UML terminology). |
boolean |
isSimple()
Check whether this is a simple (leaf) state (UML terminology). |
void |
setDone(boolean done)
Update the done property, which is set if this is a parallel state, and one its final states is active. |
void |
setInitial(Initial target)
Set the initial state. |
void |
setInvoke(Invoke invoke)
Set the Invoke child. |
void |
setIsFinal(boolean isFinal)
Set whether this is a "final" state. |
void |
setParallel(Parallel parallel)
Set the Parallel child. |
Methods inherited from class org.apache.commons.scxml.model.TransitionTarget |
getDatamodel, getId, getOnEntry, getOnExit, getParent, getParentState, setDatamodel, setId, setOnEntry, setOnExit, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public State()
Method Detail |
public final boolean getIsFinal()
public final void setIsFinal(boolean isFinal)
isFinal
- The isFinal to set.public final Parallel getParallel()
public final void setParallel(Parallel parallel)
parallel
- The parallel to set.public final Invoke getInvoke()
public final void setInvoke(Invoke invoke)
invoke
- The invoke to set.public final Initial getInitial()
public final void setInitial(Initial target)
target
- The target to set.public final Map getTransitions()
public final List getTransitionsList(String event)
event
- The event
public final void addTransition(Transition transition)
transition
- The transitions to set.public final Map getChildren()
public final void addChild(State state)
state
- a child statepublic final List getTransitionsList()
public final void addHistory(History h)
h
- History pseudo statepublic final boolean hasHistory()
public final List getHistory()
hasHistory()
public final boolean isSimple()
public final boolean isComposite()
public final boolean isRegion()
Parallel
public final boolean isOrthogonal()
public final boolean isDone()
public final void setDone(boolean done)
done
- The done to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |