|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.taglibs.rdc.scxml.model.TransitionTarget
org.apache.taglibs.rdc.scxml.model.State
public class 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 |
java.util.Map |
getChildren()
Get the map of child states (may be empty) |
Context |
getContext()
Get the Context |
java.util.List |
getHistory()
Get the list of history pseudo states for this state |
Initial |
getInitial()
Get the initial state |
boolean |
getIsFinal()
Is this state a "final" state |
Parallel |
getParallel()
Get the Parallel child (may be null) |
Transition |
getTransition(java.lang.String event)
Get the map of all outgoing transitions from this state, which will be fired on the given event. |
java.util.Map |
getTransitions()
Get the map of all outgoing transitions from this state |
java.util.List |
getTransitionsList()
Get the outgoing transitions for this state as a java.util.List |
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 |
setContext(Context context)
Set the Context |
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 |
setIsFinal(boolean isFinal)
Set whether this is a "final" state |
void |
setParallel(Parallel parallel)
Set the Parallel child |
Methods inherited from class org.apache.taglibs.rdc.scxml.model.TransitionTarget |
---|
addListener, getId, getNotificationRegistry, getOnEntry, getOnExit, getParent, getParentState, removeListener, setId, setNotificationRegistry, 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 Context getContext()
public void setContext(Context context)
context
- The context to set.public boolean getIsFinal()
public void setIsFinal(boolean isFinal)
isFinal
- The isFinal to set.public Parallel getParallel()
public void setParallel(Parallel parallel)
parallel
- The parallel to set.public Initial getInitial()
public void setInitial(Initial target)
target
- The target to set.public java.util.Map getTransitions()
public Transition getTransition(java.lang.String event)
public void addTransition(Transition transition)
transition
- The transitions to set.public java.util.Map getChildren()
public void addChild(State state)
state
- a child statepublic java.util.List getTransitionsList()
public void addHistory(History h)
h
- History pseudo statepublic boolean hasHistory()
public java.util.List getHistory()
hasHistory()
public final boolean isSimple()
public final boolean isComposite()
public final boolean isRegion()
Parallel
public final boolean isOrthogonal()
public boolean isDone()
public 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 |