|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.shiwa.fgi.iwir.AbstractTask
public abstract class AbstractTask
The Class AbstractTask is the superclass of all tasks. Every class has a name, input ports, output ports ,and optional properties and constraints.
| Constructor Summary | |
|---|---|
AbstractTask(java.lang.String name)
Instantiates a new abstract task. |
|
| Method Summary | |
|---|---|
void |
addConstraint(Constraint constraint)
Adds an additional constraint to the task. |
void |
addInputPort(InputPort inputPort)
Adds an additional input port to the task. |
void |
addOutputPort(OutputPort outputPort)
Adds an additional output port to the task. |
void |
addProperty(Property property)
Adds an additional property to the task. |
boolean |
equals(java.lang.Object obj)
|
abstract java.util.List<AbstractDataPort> |
getAllInputPorts()
Returns a list of all input ports (inputPort, loopPoort,...). |
abstract java.util.List<AbstractDataPort> |
getAllOutputPorts()
Returns a list of all output ports (outputPort, unionPort,...). |
java.util.List<AbstractTask> |
getChildren()
Returns a shallow copy of the direct child tasks. |
java.util.List<Constraint> |
getConstraints()
Returns a shallow copy of the task constraints. |
java.util.List<InputPort> |
getInputPorts()
Returns a shallow copy of the input ports InputPorttPort. |
java.lang.String |
getName()
Gets the name of the task. |
java.util.List<OutputPort> |
getOutputPorts()
Returns a shallow copy of the output ports ports OutputPorttPort. |
AbstractTask |
getParentTask()
Gets the parent task or null if the object is the top-level task. |
AbstractPort |
getPort(java.lang.String portName)
Returns the port identified by its name or null if the port is not known. |
java.util.List<Property> |
getProperties()
Returns a shallow copy of the task properties. |
java.lang.String |
getUniqueId()
Returns path+name, representing an unique identifier. |
int |
hashCode()
|
java.lang.Boolean |
isTopLevelTask()
Checks if the task is the top-level task of an IWIR workflow. |
void |
removeProperty(Property p)
Removes the given property from the list. |
void |
setPortValue(java.lang.String portName,
boolean b)
Sets the port value. |
void |
setPortValue(java.lang.String portName,
double d)
Sets the port value. |
void |
setPortValue(java.lang.String portName,
int i)
Sets the port value. |
void |
setPortValue(java.lang.String portName,
java.lang.String s)
Sets the port value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTask(java.lang.String name)
throws NotWellFormedException
name - the name of the task
NotWellFormedException - if name is not a valid task name| Method Detail |
|---|
public void addInputPort(InputPort inputPort)
throws NotWellFormedException
inputPort - the input port to add to the task
NotWellFormedException - the not well formed exception
public void addOutputPort(OutputPort outputPort)
throws NotWellFormedException
outputPort - the output port to add to the task
NotWellFormedException - the not well formed exception
public void addConstraint(Constraint constraint)
throws NotWellFormedException
constraint - the constraint to add to the task
NotWellFormedException - the not well formed exception
public void addProperty(Property property)
throws NotWellFormedException
property - the property to add to the task
NotWellFormedException - the not well formed exceptionpublic void removeProperty(Property p)
p - property to removepublic java.util.List<InputPort> getInputPorts()
InputPorttPort. Returns
an empty list if no InputPortPort exist.
public java.util.List<OutputPort> getOutputPorts()
OutputPorttPort.
Returns an empty list if no OutputPortPort exist.
public java.util.List<Property> getProperties()
public java.util.List<Constraint> getConstraints()
public java.lang.String getName()
public AbstractPort getPort(java.lang.String portName)
AbstractDataPort.
portName - the identifier of the port
public void setPortValue(java.lang.String portName,
java.lang.String s)
throws java.lang.IllegalArgumentException
portName - the port names - the string value of the port
java.lang.IllegalArgumentException - the illegal argument exception
public void setPortValue(java.lang.String portName,
double d)
throws java.lang.IllegalArgumentException
portName - the port named - the double value of the port
java.lang.IllegalArgumentException - the illegal argument exception
public void setPortValue(java.lang.String portName,
int i)
throws java.lang.IllegalArgumentException
portName - the port namei - the int value of the port
java.lang.IllegalArgumentException - the illegal argument exception
public void setPortValue(java.lang.String portName,
boolean b)
throws java.lang.IllegalArgumentException
portName - the port nameb - the boolean value of the port
java.lang.IllegalArgumentException - the illegal argument exceptionpublic java.util.List<AbstractTask> getChildren()
public java.lang.String getUniqueId()
public java.lang.Boolean isTopLevelTask()
public abstract java.util.List<AbstractDataPort> getAllInputPorts()
public abstract java.util.List<AbstractDataPort> getAllOutputPorts()
public AbstractTask getParentTask()
public java.lang.String toString()
toString in class java.lang.ObjectgetUniqueId()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||