org.gridbus.broker.jobdescription
Class Task

java.lang.Object
  extended by org.gridbus.broker.jobdescription.Task

public class Task
extends java.lang.Object

Represents the task element of an XPML file.

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

Field Summary
protected  java.lang.String name
           
 
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.
 java.lang.Object clone()
           
 int countCommands()
          Counts the current number of commands for this task.
 java.util.List 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
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.List 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.

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

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

Copyright © The University of Melbourne. 2006