org.syrup.helpers
Class TaskImpl

java.lang.Object
  extended byorg.syrup.helpers.TaskImpl
All Implemented Interfaces:
Task

public class TaskImpl
extends java.lang.Object
implements Task

A generic Task implementation.

Author:
Robbert van Dalen

Constructor Summary
TaskImpl(boolean or_type, java.lang.String function_class, java.lang.String name, java.lang.String description, java.lang.String environment, java.lang.String parameter)
          Constructor for the TaskImpl object
 
Method Summary
 java.lang.String description()
          Returns the defined description of a Task.
 java.lang.String environment()
          Returns the logical environment of the Task.
 java.lang.String functionClass()
          Returns the classname of the Function.
 java.lang.String name()
          Returns the defined name of a Task.
 boolean orType()
          Returns true if the type is OR.
 java.lang.String parameter()
          Returns the static parameter to parameterize the Task.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskImpl

public TaskImpl(boolean or_type,
                java.lang.String function_class,
                java.lang.String name,
                java.lang.String description,
                java.lang.String environment,
                java.lang.String parameter)
Constructor for the TaskImpl object

Parameters:
or_type - The orType attribute.
function_class - The functionClass attribute.
name - The name attribute.
description - The description attribute.
environment - The environment attribute.
parameter - The parameter attribute.
Method Detail

name

public java.lang.String name()
Description copied from interface: Task
Returns the defined name of a Task. All Tasks that are part of the same Workflow (share the same parent) should have an unique name.

Specified by:
name in interface Task
Returns:
The defined name.

description

public java.lang.String description()
Description copied from interface: Task
Returns the defined description of a Task. This can be used as an annotation for the execution of a Task, or as a match criterium to fetch Tasks from a WorkSpace.

Specified by:
description in interface Task
Returns:
The defined description.

environment

public java.lang.String environment()
Description copied from interface: Task
Returns the logical environment of the Task.

Specified by:
environment in interface Task
Returns:
The logical environment.

functionClass

public java.lang.String functionClass()
Description copied from interface: Task
Returns the classname of the Function.

Specified by:
functionClass in interface Task
Returns:
The Function's classname.

orType

public boolean orType()
Description copied from interface: Task
Returns true if the type is OR. Returns false if the type is AND. OR Tasks are marked for execution if one of the inputs is full. AND Tasks are marked for execution if both inputs are full.

Specified by:
orType in interface Task
Returns:
the type.

parameter

public java.lang.String parameter()
Description copied from interface: Task
Returns the static parameter to parameterize the Task.

Specified by:
parameter in interface Task
Returns:
The static parameter.

toString

public java.lang.String toString()