org.cesilko.rachota.core
Class IdleTask

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

public class IdleTask
extends Task

Task that repeats every day or once a week.


Field Summary
 
Fields inherited from class org.cesilko.rachota.core.Task
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_MEDIUM, STATE_DONE, STATE_NEW, STATE_STARTED
 
Constructor Summary
IdleTask()
          Creates a new instance of idle task.
 
Method Summary
 boolean isIdleTask()
          Returns true meaning that the task measure idle time.
 void writeRepetition(java.io.PrintStream stream)
          Writes information that this is an idle task.
 
Methods inherited from class org.cesilko.rachota.core.Task
addDuration, addNote, addPropertyChangeListener, automaticStart, cloneTask, compare, getDescription, getDuration, getKeyword, getKeywordIterator, getNotes, getNotificationTime, getPriority, getPriority, getState, getState, isRunning, privateTask, removePropertyChangeListener, setAutomaticStart, setDescription, setDuration, setKeyword, setNotes, setNotificationTime, setPriority, setPrivateTask, setState, startWork, suspendWork, tick, toString, workDone, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdleTask

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

Method Detail

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(java.io.PrintStream stream)
                     throws java.io.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:
java.io.IOException - Input/output exception thrown when some error during writing information occurs.