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 decalared final.
    • Constructor Detail

      • CompoundTask

        public CompoundTask()
      • CompoundTask

        public CompoundTask(Task t)
    • Method Detail

      • toString

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

        public void addTask(Task t)
      • addTaskAfter

        public void addTaskAfter(Task t,
                                 Task b)
      • removeTask

        public void removeTask(Task t)
      • starting

        public final void starting()
        Specified by:
        starting in interface Task
      • stopping

        public final void stopping()
        Specified by:
        stopping in interface Task
      • run

        public final void run()
                       throws java.lang.Exception
        Specified by:
        run in interface Task
        Throws:
        java.lang.Exception
      • dispose

        public void dispose()
        Specified by:
        dispose in interface Task