org.shiwa.fgi.iwir
Class AbstractCompoundTask

java.lang.Object
  extended by org.shiwa.fgi.iwir.AbstractTask
      extended by org.shiwa.fgi.iwir.AbstractCompoundTask
Direct Known Subclasses:
AbstractSimpleCompoundTask, IfTask

public abstract class AbstractCompoundTask
extends AbstractTask

The Class AbstractCompoundTask is the superclass of all compound tasks.


Constructor Summary
AbstractCompoundTask(java.lang.String name)
          Instantiates a new abstract compound task.
 
Method Summary
 void addLink(AbstractPort from, AbstractPort to)
          Adds an additional link, linking the two given ports.
 void addLink(AbstractTask from, AbstractTask to)
          Adds an additional control link,linking the two given tasks.
 boolean equals(java.lang.Object obj)
           
 java.util.List<ControlLink> getControlLinks()
          Returns a shallow copy of the control links.
 java.util.List<DataLink> getDataLinks()
          Returns a shallow copy of the data links.
 java.util.List<AbstractLink> getLinks()
          Returns a shallow copy of the links.
 int hashCode()
           
 
Methods inherited from class org.shiwa.fgi.iwir.AbstractTask
addConstraint, addInputPort, addOutputPort, addProperty, getAllInputPorts, getAllOutputPorts, getChildren, 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

AbstractCompoundTask

public AbstractCompoundTask(java.lang.String name)
Instantiates a new abstract compound task.

Parameters:
name - the name
Method Detail

addLink

public void addLink(AbstractPort from,
                    AbstractPort to)
             throws NotWellFormedException
Adds an additional link, linking the two given ports. Throws a NotWellFormedException if an error occurs. This could be for example: mismatched types and illegal data flows

Parameters:
from - the source port
to - the target port
Throws:
NotWellFormedException

addLink

public void addLink(AbstractTask from,
                    AbstractTask to)
             throws NotWellFormedException
Adds an additional control link,linking the two given tasks. This could be for example: mismatched types and illegal data flows

Parameters:
from - the source task
to - the target task
Throws:
NotWellFormedException - the not well formed exception

getLinks

public java.util.List<AbstractLink> getLinks()
Returns a shallow copy of the links. Returns an empty list if no links exist.

Returns:
the links of the task

getDataLinks

public java.util.List<DataLink> getDataLinks()
Returns a shallow copy of the data links. Returns an empty list if no data links exist.

Returns:
the data links

getControlLinks

public java.util.List<ControlLink> getControlLinks()
Returns a shallow copy of the control links. Returns an empty list if no control links exist.

Returns:
the data links

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractTask

equals

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