public class KahinaTaskManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected KahinaTask |
currentTask |
static boolean |
VERBOSE |
Constructor and Description |
---|
KahinaTaskManager() |
Modifier and Type | Method and Description |
---|---|
void |
addTask(KahinaTask task)
Adds a new task to the task queue, starting it immediately if no other task was queued.
|
void |
cancelTasks() |
void |
taskFinished(KahinaTask task) |
void |
taskStarted(KahinaTask task)
DANGEROUS: overriding methods MUST call super.taskStarted(task)!
|
protected KahinaTask currentTask
public static boolean VERBOSE
public void addTask(KahinaTask task)
task
- the task to be queued and started when all the preceding tasks are processed.public void taskStarted(KahinaTask task)
task
- public void taskFinished(KahinaTask task)
public void cancelTasks()