Class IdleTask

java.lang.Object
org.cesilko.rachota.core.Task
org.cesilko.rachota.core.IdleTask
All Implemented Interfaces:
ClockListener

public class IdleTask extends Task
Task that repeats every day or once a week.
  • Constructor Details

    • IdleTask

      public IdleTask()
      Creates a new instance of idle task.
  • Method Details

    • isIdleTask

      public boolean isIdleTask()
      Returns true meaning that the task measure idle time.
      Overrides:
      isIdleTask in class Task
      Returns:
      True if this is an idle task, false otherwise.
    • writeRepetition

      public void writeRepetition(PrintStream stream) throws IOException
      Writes information that this is an idle task.
      Overrides:
      writeRepetition in class Task
      Parameters:
      stream - Print stream where info about this idle task will be written.
      Throws:
      IOException - Input/output exception thrown when some error during writing information occurs.