|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
ccd.JCamera.ExposeThread
protected class JCamera.ExposeThread
The exposure thread repeadetly calls the ccd's CcdDriver.expose()
method until stopped or until the predefined number of exposures is
reached. Whenever a new exposure finished, signaled by a return of the
CcdDriver.expose() method, a JCamera.DisplayThread is notified to
retrieve the data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private boolean |
cancel
If true, we cancel exposure taking. |
private int |
count
The number of images to take. |
private nom.tam.fits.Fits |
current
The fits currently retrieved. |
private JCamera.DisplayThread |
display
The display thread linked to the read-out thread. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
protected |
JCamera.ExposeThread(int maxexposures)
Constructs a new, non auto-starting exposure thread. |
| Method Summary | |
|---|---|
protected nom.tam.fits.Fits |
getCurrentFits()
Retrieves the last CCD exposure name. |
void |
run()
Runs the exposure. |
protected void |
setCancel(boolean yes)
Sets the cancel flag. |
protected void |
setDisplayThread(JCamera.DisplayThread show)
We hand over a handle to the image thread to let the exposure thread yell if the network retrieval of the fits is too slow. |
| 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 |
|---|
private JCamera.DisplayThread display
private int count
private nom.tam.fits.Fits current
private boolean cancel
| Constructor Detail |
|---|
protected JCamera.ExposeThread(int maxexposures)
| Method Detail |
|---|
protected void setDisplayThread(JCamera.DisplayThread show)
public void run()
CcdDriver.expose() method
returns, we notify the main class.
run in interface Runnablerun in class Threadprotected void setCancel(boolean yes)
protected nom.tam.fits.Fits getCurrentFits()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||