Package samer.tools

Class SwitchTask

  • java.lang.Object
    • samer.tools.SwitchTask
  • All Implemented Interfaces:
    Task


    public class SwitchTask
    extends java.lang.Object
    implements Task
    This is a task that runs a single child task every N iterations, that is, at some integer sub-multiple of the main loop rate
    • Constructor Detail

      • SwitchTask

        public SwitchTask(boolean e,
                          Task t)
      • SwitchTask

        public SwitchTask(Task t)
    • Method Detail

      • enable

        public void enable()
      • disable

        public void disable()
      • 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
      • toString

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