|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.shiwa.fgi.iwir.AbstractTask
org.shiwa.fgi.iwir.AbstractCompoundTask
org.shiwa.fgi.iwir.IfTask
public class IfTask
The Class IfTask enables the conditional execution of the inner tasks.
Constructor Summary | |
---|---|
IfTask(java.lang.String name)
Instantiates a new if task. |
|
IfTask(java.lang.String name,
ConditionExpression condition)
Instantiates a new if task with a given condition. |
Method Summary | |
---|---|
void |
addTaskToElseBlock(AbstractTask task)
Adds a additional task to the inner else block. |
void |
addTaskToThenBlock(AbstractTask task)
Adds a additional task to the inner then block. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<AbstractDataPort> |
getAllInputPorts()
Returns a list of all input ports (inputPort, loopPoort,...). |
java.util.List<AbstractDataPort> |
getAllOutputPorts()
Returns a list of all output ports (outputPort, unionPort,...). |
java.util.List<AbstractTask> |
getChildren()
Returns a shallow copy of the direct child tasks. |
ConditionExpression |
getCondition()
Gets the condition of the task. |
java.util.List<AbstractTask> |
getElseTasks()
Returns a shallow copy of the else tasks. |
java.util.List<AbstractTask> |
getThenTasks()
Returns a shallow copy of the then tasks. |
int |
hashCode()
|
void |
setCondition(ConditionExpression condition)
Sets the condition of the task. |
Methods inherited from class org.shiwa.fgi.iwir.AbstractCompoundTask |
---|
addLink, addLink, getControlLinks, getDataLinks, getLinks |
Methods inherited from class org.shiwa.fgi.iwir.AbstractTask |
---|
addConstraint, addInputPort, addOutputPort, addProperty, getConstraints, getInputPorts, getName, getOutputPorts, getParentTask, getPort, getProperties, getUniqueId, isTopLevelTask, removeProperty, setPortValue, setPortValue, setPortValue, setPortValue, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IfTask(java.lang.String name)
name
- the name of the if taskpublic IfTask(java.lang.String name, ConditionExpression condition)
name
- the name of the if taskcondition
- the condition of the if taskMethod Detail |
---|
public void setCondition(ConditionExpression condition)
condition
- the new condition of the taskpublic ConditionExpression getCondition()
public void addTaskToThenBlock(AbstractTask task) throws NotWellFormedException
task
- the task to add to the then block
NotWellFormedException
- the not well formed exceptionpublic void addTaskToElseBlock(AbstractTask task) throws NotWellFormedException
task
- the task to add to the else block
NotWellFormedException
- the not well formed exceptionpublic java.util.List<AbstractTask> getThenTasks()
public java.util.List<AbstractTask> getElseTasks()
public java.util.List<AbstractTask> getChildren()
AbstractTask
getChildren
in class AbstractTask
public java.util.List<AbstractDataPort> getAllInputPorts()
AbstractTask
getAllInputPorts
in class AbstractTask
public java.util.List<AbstractDataPort> getAllOutputPorts()
AbstractTask
getAllOutputPorts
in class AbstractTask
public int hashCode()
hashCode
in class AbstractCompoundTask
public boolean equals(java.lang.Object obj)
equals
in class AbstractCompoundTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |