org.gridbus.broker.runfile
Class Task

java.lang.Object
  extended byorg.gridbus.broker.runfile.Task

public class Task
extends java.lang.Object

Represents the task element of a run file.

Author:
Hussein Gibbins (hag@cs.mu.oz.au)

Constructor Summary
Task()
          Default constructor.
Task(java.lang.String name)
          Constructs a task with the given name.
 
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.
 java.lang.String getName()
          Gets the task name.
 void setName(java.lang.String name)
          Sets the task name.
 void setRSL(java.lang.String rsl)
          Sets the RSL for this task
 java.lang.String toRSL()
          Produces the rsl representation of this task.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task

public Task()
Default constructor.


Task

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

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

setName

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

Parameters:
name - the name of the task.

getName

public java.lang.String getName()
Gets the task name.

Returns:
the name 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.

toRSL

public java.lang.String toRSL()
Produces the rsl representation of this task.

Returns:
rsl for this task.

setRSL

public void setRSL(java.lang.String rsl)
Sets the RSL for this task

Parameters:
rsl -