stella.adapter
Class AuxiliaryMaster.ContinuousExposure

java.lang.Object
  extended by java.lang.Thread
      extended by stella.adapter.AuxiliaryMaster.ContinuousExposure
All Implemented Interfaces:
Runnable
Enclosing class:
AuxiliaryMaster

private class AuxiliaryMaster.ContinuousExposure
extends Thread

A thread that continousely exposes the auxiliary camera until stopped.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean cancel
          Gets true, if we should exit.
private  double tsec
          The exposure time in seconds.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private AuxiliaryMaster.ContinuousExposure(double t)
          Hand over the exposure time, no auto-start.
 
Method Summary
 void cancel()
          Called, if we should cancle after the readout of the current exposure.
private  boolean ready()
          We are ready if we have a CCD.
 void run()
          On run, we continuousely take exposures until canceled.
 
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

tsec

private double tsec
The exposure time in seconds.


cancel

private boolean cancel
Gets true, if we should exit.

Constructor Detail

AuxiliaryMaster.ContinuousExposure

private AuxiliaryMaster.ContinuousExposure(double t)
Hand over the exposure time, no auto-start.

Parameters:
t - Exposure time in seconds.
Method Detail

run

public void run()
On run, we continuousely take exposures until canceled.

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

ready

private boolean ready()
We are ready if we have a CCD.


cancel

public void cancel()
Called, if we should cancle after the readout of the current exposure.