stella.parameter
Class AlarmWatch.AlarmNotify

java.lang.Object
  extended by java.lang.Thread
      extended by stella.parameter.AlarmWatch.AlarmNotify
All Implemented Interfaces:
Runnable
Enclosing class:
AlarmWatch

private class AlarmWatch.AlarmNotify
extends Thread

The thread that watches the accumulated time and notifies the monitor if the alarm intervall has elapsed.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AlarmWatch.AlarmNotify()
          Constructs a new notification thread.
 
Method Summary
 void run()
          checks the elapsed time on the stop watch.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlarmWatch.AlarmNotify

public AlarmWatch.AlarmNotify()
Constructs a new notification thread. The thread is not started automatically.

Method Detail

run

public void run()
checks the elapsed time on the stop watch. If no monitor has been registered to this alarm watch, this method returns instantly. Otherwise, this method grabs the monitor on the notifable object, waits for several AlarmWatch.KEY_ACCURACY intervalls until the AlarmWatch.KEY_ALARM time has elapsed and then notifies the monitor.

Specified by:
run in interface Runnable
Overrides:
run in class Thread