org.eclipse.smila.taskmanager
Class TaskCounter
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TaskCounter
public TaskCounter(java.lang.String workerName,
int tasksTodo,
int tasksInProgress)
- Conversion Constructor.
- Parameters:
workerName
- the name of the workertasksTodo
- the number of todo taskstasksInProgress
- the number of tasks in progress
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