|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Switch activity allows you to select exactly one branch of activity from
a set of choices.
The conditions must be ordered following the same order as the activities
stored in this container; first to keep a coherence between conditions and
their activities; second because the first condition that is evaluated to true
following the ordering will have its activity executed (and not the other
ones).
Method Summary | |
void |
addCondition(java.lang.String condition,
org.smartcomps.twister.engine.priv.core.definition.Activity activity)
Adds conditions to this Switch with their activities. |
java.util.SortedMap |
getActivityConditions()
Returns a SortedMap containing the activities as keys ordered as they have been inserted in this container and their conditions as values. |
java.lang.String |
getCondition(int index)
Returns the condition at index. |
java.util.List |
getConditions()
|
void |
setOtherwise(org.smartcomps.twister.engine.priv.core.definition.Activity activity)
Sets an Activity as the otherwise for this Switch. |
Methods inherited from interface org.smartcomps.twister.engine.priv.core.definition.StructuredActivity |
addActivity, addExecutionContext, getActivities, getExecutionContexts |
Methods inherited from interface org.smartcomps.twister.engine.priv.core.definition.Activity |
fetchProcess, getContainer, getJoinCondition, getName, getProcess, getSourceLinks, getTargetLinks, setJoinCondition, setName, setSourceLinks, setTargetLinks |
Method Detail |
public void addCondition(java.lang.String condition, org.smartcomps.twister.engine.priv.core.definition.Activity activity)
condition
- activity
- public java.util.SortedMap getActivityConditions()
public java.lang.String getCondition(int index)
index
-
public java.util.List getConditions()
public void setOtherwise(org.smartcomps.twister.engine.priv.core.definition.Activity activity)
activity
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |