cz.cuni.pogamut.experiments
Class TimerTask

java.lang.Object
  extended by cz.cuni.pogamut.experiments.TimerTask

public abstract class TimerTask
extends java.lang.Object


Field Summary
private  boolean canceled
           
protected  long scheduledSimulationTime
          Simulation time when this event should occur.
 
Constructor Summary
TimerTask()
          Creates a new instance of TimerTask
 
Method Summary
 void cancel()
          Cancels execution of the task.
 boolean isCanceled()
           
abstract  void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canceled

private boolean canceled

scheduledSimulationTime

protected long scheduledSimulationTime
Simulation time when this event should occur.

Constructor Detail

TimerTask

public TimerTask()
Creates a new instance of TimerTask

Method Detail

run

public abstract void run()

cancel

public void cancel()
Cancels execution of the task.


isCanceled

public boolean isCanceled()
Returns:
true if the task was already canceled.