stella.roof
Class BaaderDome.AzimuthRead

java.lang.Object
  extended by java.lang.Thread
      extended by stella.roof.BaaderDome.AzimuthRead
All Implemented Interfaces:
Runnable
Enclosing class:
BaaderDome

private class BaaderDome.AzimuthRead
extends Thread

This thread permanently tries to read the azimuth. Any valid reading means that the value is cached in BaaderDome.cache. The first valid reading toggles a notification on waiters on this thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  boolean cancel
          Set to true and thread dies.
private  boolean failed
          If this is true, last read failed.
private  DomeClient faulty
          The client we read from.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private BaaderDome.AzimuthRead(DomeClient robotel)
          Initializes the azimuth read thread, but does not start it.
 
Method Summary
 void run()
          Runs this thread.
 
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
 

Field Detail

faulty

private DomeClient faulty
The client we read from.


failed

private boolean failed
If this is true, last read failed. Used for logging.


cancel

boolean cancel
Set to true and thread dies.

Constructor Detail

BaaderDome.AzimuthRead

private BaaderDome.AzimuthRead(DomeClient robotel)
Initializes the azimuth read thread, but does not start it.

Method Detail

run

public void run()
Runs this thread.

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