org.simulare
Class ClockedTask
java.lang.Object
org.simulare.ClockedTask
- All Implemented Interfaces:
- ClockListener, java.util.EventListener
- Direct Known Subclasses:
- ScheduledTask
- public abstract class ClockedTask
- extends java.lang.Object
- implements ClockListener
Identify a clock based task. The task is executed over the object depending
on clock events.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClockedTask
public ClockedTask()
ClockedTask
public ClockedTask(Task task,
Item item)
getTask
public Task getTask()
setTask
public void setTask(Task task)
getItem
public Item getItem()
setItem
public void setItem(Item item)
clockStarted
public void clockStarted(ClockEvent e)
- Specified by:
clockStarted
in interface ClockListener
clockPaused
public void clockPaused(ClockEvent e)
- Specified by:
clockPaused
in interface ClockListener
clockResumed
public void clockResumed(ClockEvent e)
- Specified by:
clockResumed
in interface ClockListener
clockStoped
public void clockStoped(ClockEvent e)
- Specified by:
clockStoped
in interface ClockListener
clockChanged
public void clockChanged(ClockEvent e)
- Specified by:
clockChanged
in interface ClockListener