stella.parameter
Class WatchController.ResetTask

java.lang.Object
  extended by java.util.TimerTask
      extended by stella.parameter.WatchController.ResetTask
All Implemented Interfaces:
Runnable
Enclosing class:
WatchController

protected class WatchController.ResetTask
extends TimerTask

A timer task that simply resets the roll-over watch passed to it as a constructor argument.


Field Summary
private  StopWatch nullify
          The stop-watch to be reset.
 
Constructor Summary
protected WatchController.ResetTask(StopWatch resetit)
          Constructs a new reset task.
 
Method Summary
 void run()
          Resets the stop watch.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nullify

private StopWatch nullify
The stop-watch to be reset.

Constructor Detail

WatchController.ResetTask

protected WatchController.ResetTask(StopWatch resetit)
Constructs a new reset task. The stopwatch passed in as an argument is reset in the run() method.

Method Detail

run

public void run()
Resets the stop watch. Synchronizes on the stop-watch prior to resetting it, because Long is non-atomic.

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask