Package samer.tools
Class CompoundTask
- java.lang.Object
-
- samer.tools.CompoundTask
-
- All Implemented Interfaces:
- Task
public class CompoundTask extends java.lang.Object implements Task
This is a task that consists of a list of sub tasks. The task is no more than the sum of its subtasks -- ie there can be no extra processing other than that done by the tasks in the list. This is why the Task methods are decalaredfinal
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description class
CompoundTask.Iterator
-
Constructor Summary
Constructors Constructor and Description CompoundTask()
CompoundTask(Task t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addTask(Task t)
void
addTaskAfter(Task t, Task b)
void
dispose()
CompoundTask.Iterator
iterator()
void
removeTask(Task t)
void
run()
void
starting()
void
stopping()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CompoundTask
public CompoundTask()
-
CompoundTask
public CompoundTask(Task t)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
addTask
public void addTask(Task t)
-
removeTask
public void removeTask(Task t)
-
iterator
public CompoundTask.Iterator iterator()
-
run
public final void run() throws java.lang.Exception
-
-