ccd
Class SynchronousCcdDriver.ExposureThread

java.lang.Object
  extended by java.lang.Thread
      extended by util.ExitThread
          extended by ccd.SynchronousCcdDriver.ExposureThread
All Implemented Interfaces:
Runnable
Enclosing class:
SynchronousCcdDriver<T>

protected class SynchronousCcdDriver.ExposureThread
extends ExitThread

An exposure thread simly calls CcdDriver.expose() or CcdDriver.exposeDark(), depending on the argument it was constructed with.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  AbstractCcdDriver.Exposure how
          The flag to the method to call.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected SynchronousCcdDriver.ExposureThread(AbstractCcdDriver.Exposure flag)
          Constructs a new exposure thread without starting it.
 
Method Summary
protected  boolean runner()
          Does the expoure by calling the appropriate outer class method.
 
Methods inherited from class util.ExitThread
getEnterTime, getError, getExecutionTime, getExitTime, run, wasSuccess
 
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

how

private AbstractCcdDriver.Exposure how
The flag to the method to call.

Constructor Detail

SynchronousCcdDriver.ExposureThread

protected SynchronousCcdDriver.ExposureThread(AbstractCcdDriver.Exposure flag)
Constructs a new exposure thread without starting it. The argument specifies the action undertaken in the run method.

Parameters:
flag - Either #EXPOSURE or #DARKEXPOSURE
Method Detail

runner

protected boolean runner()
                  throws IOException
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:
IOException