|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.scxml.model.Executable
org.apache.commons.scxml.model.Transition
The class in this SCXML object model that corresponds to the <transition> SCXML element. Transition rules are triggered by "events" and conditionalized via "guard-conditions".
Constructor Summary | |
Transition()
Constructor. |
Method Summary | |
String |
getCond()
Get the guard condition (may be null). |
String |
getEvent()
Get the event that will trigger this transition (pending evaluation of the guard condition in favor). |
String |
getNext()
Get the ID of the transition target (may be null, if, for example, the target is specified inline). |
Path |
getPath()
Get the path of this transiton. |
TransitionTarget |
getRuntimeTarget()
Get the runtime transition target, which always resolves to a TransitionTarget instance. |
TransitionTarget |
getTarget()
Get the transition target (may be null). |
void |
setCond(String cond)
Set the guard condition. |
void |
setEvent(String event)
Set the event that will trigger this transition (pending evaluation of the guard condition in favor). |
void |
setNext(String next)
Set the transition target by specifying its ID. |
void |
setTarget(TransitionTarget target)
Set the transition target. |
Methods inherited from class org.apache.commons.scxml.model.Executable |
addAction, getActions, getParent, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Transition()
Method Detail |
public final String getCond()
public final void setCond(String cond)
cond
- The cond to set.public final String getEvent()
public final void setEvent(String event)
event
- The event to set.public final TransitionTarget getTarget()
Remarks: Is null
for "stay" transitions.
Returns parent (the source node) for "self" transitions.
public final TransitionTarget getRuntimeTarget()
Remarks: For both the "stay" and "self"
transitions it returns parent (the source node). This method should
never return null
.
public final void setTarget(TransitionTarget target)
target
- The target to set.public final String getNext()
getTarget()
public final void setNext(String next)
next
- The the transition target ID (used by SCXML Digester only).setTarget(TransitionTarget)
public final Path getPath()
Path
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |