org.shiwa.fgi.iwir
Class ParallelForTask

java.lang.Object
  extended by org.shiwa.fgi.iwir.AbstractTask
      extended by org.shiwa.fgi.iwir.AbstractCompoundTask
          extended by org.shiwa.fgi.iwir.AbstractSimpleCompoundTask
              extended by org.shiwa.fgi.iwir.ParallelForTask

public class ParallelForTask
extends AbstractSimpleCompoundTask

The Class ParallelForTask.


Constructor Summary
ParallelForTask(java.lang.String name)
          Instantiates a new parallel for task.
 
Method Summary
 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.
 void setLoopCounter(LoopCounter loopCounter)
          Sets the loop counter of 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

ParallelForTask

public ParallelForTask(java.lang.String name)
Instantiates a new parallel for task.

Parameters:
name - the name of the parallel for task
Method Detail

setLoopCounter

public void setLoopCounter(LoopCounter loopCounter)
Sets the loop counter of the task.

Parameters:
loopCounter - the new loop counter

getLoopCounter

public LoopCounter getLoopCounter()
Gets the loop counter of the task. Returns null if no loop counter exists.

Returns:
the loop counter

getAllInputPorts

public java.util.List<AbstractDataPort> getAllInputPorts()
Description copied from class: AbstractTask
Returns a list of all input ports (inputPort, loopPoort,...). For the loopCounter its ports (from,to,step) are added, if they exist.

Specified by:
getAllInputPorts in class AbstractTask
Returns:
the all input ports

getAllOutputPorts

public java.util.List<AbstractDataPort> getAllOutputPorts()
Description copied from class: AbstractTask
Returns a list of all output ports (outputPort, unionPort,...).

Specified by:
getAllOutputPorts in class AbstractTask
Returns:
the all input ports