cgl.narada.service
Class Task

java.lang.Object
  extended by cgl.narada.service.Task

public class Task
extends Object

This is a class which allows you to track the status of completion of a task


Field Summary
static int COMPLETED
           
static int IN_PROGRESS
           
static int NOT_STARTED
           
 
Constructor Summary
protected Task(long taskId)
           
 
Method Summary
protected  void addSubTask(Task subTask)
           
 int getNumOfSubTasks()
           
 int getNumOfWorkUnits()
           
 int getNumOfWorkUnitsCompleted()
           
 int getStatus()
           
 Task getSubTask(int subTaskNum)
          The sub task numbering starts at 0
 String getTaskDescription()
           
 long getTaskId()
           
 boolean hasSubTasks()
           
protected  void setNumOfSubTasks(int numOfSubTasks)
           
protected  void setNumOfWorkUnits(int numOfWorkUnits)
           
protected  void setNumOfWorkUnitsCompleted(int numOfWorkUnitsCompleted)
           
protected  void setTaskDescription(String description)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_STARTED

public static final int NOT_STARTED
See Also:
Constant Field Values

IN_PROGRESS

public static final int IN_PROGRESS
See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
See Also:
Constant Field Values
Constructor Detail

Task

protected Task(long taskId)
Method Detail

getTaskId

public long getTaskId()

getTaskDescription

public String getTaskDescription()

getStatus

public int getStatus()

hasSubTasks

public boolean hasSubTasks()

getNumOfSubTasks

public int getNumOfSubTasks()

getSubTask

public Task getSubTask(int subTaskNum)
The sub task numbering starts at 0


getNumOfWorkUnits

public int getNumOfWorkUnits()

getNumOfWorkUnitsCompleted

public int getNumOfWorkUnitsCompleted()

addSubTask

protected void addSubTask(Task subTask)

setNumOfSubTasks

protected void setNumOfSubTasks(int numOfSubTasks)

setTaskDescription

protected void setTaskDescription(String description)

setNumOfWorkUnits

protected void setNumOfWorkUnits(int numOfWorkUnits)

setNumOfWorkUnitsCompleted

protected void setNumOfWorkUnitsCompleted(int numOfWorkUnitsCompleted)

toString

public String toString()
Overrides:
toString in class Object


For comments and suggestions please send e-mail to The NaradaBrokering Project