Package samer.tools

Class SubrateTask

  • java.lang.Object
    • samer.tools.SubrateTask
  • All Implemented Interfaces:
    java.io.Serializable, Task


    public class SubrateTask
    extends java.lang.Object
    implements Task, java.io.Serializable
    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
    See Also:
    Serialized Form
    • Constructor Detail

      • SubrateTask

        protected SubrateTask()
      • SubrateTask

        public SubrateTask(int f)
      • SubrateTask

        public SubrateTask(int f,
                           Task t)
    • Method Detail

      • getFactor

        public int getFactor()
      • setFactor

        public void setFactor(int f)
      • setTask

        public void setTask(Task t)
      • getTask

        public Task getTask()
      • 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