org.shiwa.fgi.iwir
Class AbstractSimpleCompoundTask

java.lang.Object
  extended by org.shiwa.fgi.iwir.AbstractTask
      extended by org.shiwa.fgi.iwir.AbstractCompoundTask
          extended by org.shiwa.fgi.iwir.AbstractSimpleCompoundTask
Direct Known Subclasses:
BlockScope, ForEachTask, ForTask, ParallelForEachTask, ParallelForTask, WhileTask

public abstract class AbstractSimpleCompoundTask
extends AbstractCompoundTask

The Class AbstractSimpleCompoundTask provides support for one body element and is the super class for WhileTask, ForTask, ForEachTask, ParallelForTask, ParallelForEachTask and BlockScope.


Constructor Summary
AbstractSimpleCompoundTask(java.lang.String name)
          Instantiates a new compound loop task.
 
Method Summary
 void addTask(AbstractTask task)
          Adds an additional task to the inner body.
 boolean equals(java.lang.Object obj)
           
 java.util.List<AbstractTask> getBodyTasks()
          Returns a shallow copy of the body task.
 java.util.List<AbstractTask> getChildren()
          Returns a shallow copy of the direct child tasks.
 int 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, getAllInputPorts, getAllOutputPorts, 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

AbstractSimpleCompoundTask

public AbstractSimpleCompoundTask(java.lang.String name)
Instantiates a new compound loop task.

Parameters:
name - the name
Method Detail

addTask

public void addTask(AbstractTask task)
             throws NotWellFormedException
Adds an additional task to the inner body. A NotWellFormedException is thrown if the task is already defined in its scope, for example.

Parameters:
task - the task to add to the body
Throws:
NotWellFormedException

getBodyTasks

public java.util.List<AbstractTask> getBodyTasks()
Returns a shallow copy of the body task. Returns an empty list if no tasks exist.

Returns:
the body tasks

getChildren

public java.util.List<AbstractTask> getChildren()
                                         throws NotWellFormedException
Description copied from class: AbstractTask
Returns a shallow copy of the direct child tasks. Returns an empty list if no children exist.

Overrides:
getChildren in class AbstractTask
Returns:
the children of the task
Throws:
NotWellFormedException

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractCompoundTask

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractCompoundTask