org.shiwa.fgi.iwir
Class Task

java.lang.Object
  extended by org.shiwa.fgi.iwir.AbstractTask
      extended by org.shiwa.fgi.iwir.Task

public class Task
extends AbstractTask

The Class Task is a task which is implemented by a single computational entity. It's either an AtomicTask or a Subworkflow.


Constructor Summary
Task(java.lang.String name, java.lang.String tasktype)
          Instantiates a new atomic task.
 
Method Summary
 void addLoopElement(LoopElement loopelement)
           
 void addLoopPort(LoopPort loopPort)
           
 void addUnionPort(UnionPort unionPort)
           
 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.lang.String getTasktype()
          Gets the tasktype of the task.
 int hashCode()
           
 boolean isSubWorkflow()
          Checks if the task is a sub workflow.
 void setTasktype(java.lang.String tasktype)
          Sets the tasktype of the task.
 void updateWorkflow(IWIR iwir, AbstractCompoundTask parent, org.shiwa.fgi.iwir.TaskGroup body)
           
 
Methods inherited from class org.shiwa.fgi.iwir.AbstractTask
addConstraint, addInputPort, addOutputPort, addProperty, 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

Task

public Task(java.lang.String name,
            java.lang.String tasktype)
Instantiates a new atomic task.

Parameters:
name - the name of the task
tasktype - the type of the task
Method Detail

getTasktype

public java.lang.String getTasktype()
Gets the tasktype of the task.

Returns:
the tasktype of the task

setTasktype

public void setTasktype(java.lang.String tasktype)
Sets the tasktype of the task.

Parameters:
tasktype - the new task tasktype

addLoopPort

public void addLoopPort(LoopPort loopPort)

addUnionPort

public void addUnionPort(UnionPort unionPort)

addLoopElement

public void addLoopElement(LoopElement loopelement)

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

isSubWorkflow

public boolean isSubWorkflow()
Checks if the task is a sub workflow.

Returns:
true, if task sub workflow

updateWorkflow

public void updateWorkflow(IWIR iwir,
                           AbstractCompoundTask parent,
                           org.shiwa.fgi.iwir.TaskGroup body)

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractTask

equals

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