org.simulare
Class ClockedTask

java.lang.Object
  extended byorg.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.


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

Constructor Detail

ClockedTask

public ClockedTask()

ClockedTask

public ClockedTask(Task task,
                   Item item)
Method Detail

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