org.gridbus.broker.runfile
Class Task

java.lang.Object
  extended by org.gridbus.broker.runfile.Task
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Requirement

public class Task
extends java.lang.Object
implements java.io.Serializable

Represents the task element of a run file.

Author:
Hussein Gibbins (hag@cs.mu.oz.au)
See Also:
Serialized Form

Constructor Summary
Task()
          Default constructor.
Task(java.lang.String name)
          Constructs a task with the given type.
 
Method Summary
 void addCommand(TaskCommand cmd)
          Adds a Task Command (run file command) to this Task.
 void clearCommands()
          Clears the current set of commands for this task.
 int countCommands()
          Counts the current number of commands for this task.
 java.util.Vector getCommands()
          Gets the current set of commands for this task.
 Task getPostProcessTask()
           
 java.lang.String getType()
          Gets the task type.
 void setPostProcessTask(Task task)
           
 void setType(java.lang.String name)
          Sets the task type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Task

public Task()
Default constructor.


Task

public Task(java.lang.String name)
Constructs a task with the given type.

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

setType

public void setType(java.lang.String name)
Sets the task type.

Parameters:
name - the type of the task.

getType

public java.lang.String getType()
Gets the task type.

Returns:
the type of the task.

addCommand

public void addCommand(TaskCommand cmd)
Adds a Task Command (run file command) to this Task.

Parameters:
cmd - the command to add.

getCommands

public java.util.Vector getCommands()
Gets the current set of commands for this task.

Returns:
the set of commands.

clearCommands

public void clearCommands()
Clears the current set of commands for this task.


countCommands

public int countCommands()
Counts the current number of commands for this task.

Returns:
number of commands.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

setPostProcessTask

public void setPostProcessTask(Task task)
Parameters:
task -

getPostProcessTask

public Task getPostProcessTask()
Returns: