stella.parameter
Class WatchController.ResetTask
java.lang.Object
java.util.TimerTask
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.
|
Method Summary |
void |
run()
Resets the stop watch. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nullify
private StopWatch nullify
- The stop-watch to be reset.
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.
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