org.simulare
Class ScheduledTask

java.lang.Object
  extended byorg.simulare.ClockedTask
      extended byorg.simulare.ScheduledTask
All Implemented Interfaces:
ClockListener, java.util.EventListener
Direct Known Subclasses:
PeriodicTask

public class ScheduledTask
extends ClockedTask

Represents a Task scheduled to execute on a specific time.


Constructor Summary
ScheduledTask(long start)
           
ScheduledTask(Task task, Item item, long start)
           
 
Method Summary
 void clockChanged(ClockEvent e)
           
 void clockStarted(ClockEvent e)
           
 void clockStoped(ClockEvent e)
           
 long getStart()
           
 boolean isDone()
           
 void setStart(long start)
           
 
Methods inherited from class org.simulare.ClockedTask
clockPaused, clockResumed, getItem, getTask, setItem, setTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduledTask

public ScheduledTask(long start)

ScheduledTask

public ScheduledTask(Task task,
                     Item item,
                     long start)
Method Detail

getStart

public long getStart()

setStart

public void setStart(long start)

isDone

public boolean isDone()

clockStarted

public void clockStarted(ClockEvent e)
Specified by:
clockStarted in interface ClockListener
Overrides:
clockStarted in class ClockedTask

clockStoped

public void clockStoped(ClockEvent e)
Specified by:
clockStoped in interface ClockListener
Overrides:
clockStoped in class ClockedTask

clockChanged

public void clockChanged(ClockEvent e)
Specified by:
clockChanged in interface ClockListener
Overrides:
clockChanged in class ClockedTask