|
||||||||||
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.AbstractSimpleCompoundTask
org.shiwa.fgi.iwir.ForTask
public class ForTask
The Class ForTask executes its body multiple times determined by a
LoopCounter
.
Constructor Summary | |
---|---|
ForTask(java.lang.String name)
Instantiates a new for task. |
Method Summary | |
---|---|
void |
addLoopPort(LoopPort loopPort)
Adds an additional loop port to the task. |
void |
addUnionPort(UnionPort unionPort)
Adds an additional union port to the task. |
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,...). |
LoopCounter |
getLoopCounter()
Gets the loop counter of the task. |
java.util.List<LoopPort> |
getLoopPorts()
Returns a shallow copy of the loop ports. |
java.util.List<UnionPort> |
getUnionPorts()
Returns a shallow copy of the union ports. |
void |
setLoopCounter(LoopCounter loopCounter)
Sets the new loop counter for the task. |
Methods inherited from class org.shiwa.fgi.iwir.AbstractSimpleCompoundTask |
---|
addTask, equals, getBodyTasks, getChildren, hashCode |
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 ForTask(java.lang.String name)
name
- the name of the for taskMethod Detail |
---|
public void addLoopPort(LoopPort loopPort) throws NotWellFormedException
loopPort
- the loop port to add to the task
NotWellFormedException
- the not well formed exceptionpublic void setLoopCounter(LoopCounter loopCounter)
loopCounter
- the new loop counter for the task
NotWellFormedException
- the not well formed exceptionpublic void addUnionPort(UnionPort unionPort) throws NotWellFormedException
unionPort
- the union port to add to the task
NotWellFormedException
public java.util.List<LoopPort> getLoopPorts()
public java.util.List<UnionPort> getUnionPorts()
public LoopCounter getLoopCounter()
public java.util.List<AbstractDataPort> getAllInputPorts()
AbstractTask
getAllInputPorts
in class AbstractTask
public java.util.List<AbstractDataPort> getAllOutputPorts()
AbstractTask
getAllOutputPorts
in class AbstractTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |