ccd
Class AsynchronousCcdDriver.ExposureThread
java.lang.Object
java.lang.Thread
util.ExitThread
ccd.AsynchronousCcdDriver.ExposureThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- AsynchronousCcdDriver<T>
protected class AsynchronousCcdDriver.ExposureThread
- extends ExitThread
An exposure thread start an exposure in its run method by calling
the appropriate driver method. It then simly waits the exposure time
plus the readout time,
then starts querying until AsynchronousCcdDriver.isExposing() returns false. Before
exiting, all waiters are notified.
|
Method Summary |
protected boolean |
runner()
Does the expoure by calling the appropriate outer class method. |
| 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 |
how
private AbstractCcdDriver.Exposure how
- The flag to the method to call.
cycle
private long cycle
- The wait time for exposure finished queries.
AsynchronousCcdDriver.ExposureThread
protected AsynchronousCcdDriver.ExposureThread(AbstractCcdDriver.Exposure flag,
long querycycle)
- Constructs a new exposure thread without starting it. The argument
specifies the action undertaken in the run method.
- Parameters:
flag - Either #EXPOSURE or #DARKEXPOSURE
runner
protected boolean runner()
throws Exception
- Does the expoure by calling the appropriate outer class method. If
an
IOException happens during the exposure, the thread is
interrupted.
- Specified by:
runner in class ExitThread
- Throws:
Exception