SMILA 1.0 API documentation

org.eclipse.smila.taskmanager
Class TaskCounter

java.lang.Object
  extended by org.eclipse.smila.taskmanager.TaskCounter

public class TaskCounter
extends java.lang.Object


Constructor Summary
TaskCounter(java.lang.String workerName, int tasksTodo, int tasksInProgress)
          Conversion Constructor.
 
Method Summary
 int getTasksInProgress()
          Get the task that are in progress.
 int getTasksTodo()
          Get the todo tasks.
 java.lang.String getWorkerName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskCounter

public TaskCounter(java.lang.String workerName,
                   int tasksTodo,
                   int tasksInProgress)
Conversion Constructor.

Parameters:
workerName - the name of the worker
tasksTodo - the number of todo tasks
tasksInProgress - the number of tasks in progress
Method Detail

getWorkerName

public java.lang.String getWorkerName()
Returns:
the name of the worker

getTasksTodo

public int getTasksTodo()
Get the todo tasks.

Returns:
the number of todo tasks

getTasksInProgress

public int getTasksInProgress()
Get the task that are in progress.

Returns:
the number of tasks in progress.

toString

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

SMILA 1.0 API documentation