|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
io.AbstractDriver
ccd.AbstractCcdDriver<T>
ccd.AsynchronousCcdDriver<T>
public abstract class AsynchronousCcdDriver<T>
A non-blocking ccd-driver acts on the #startExpose and
#startDarkExpose. The expose(), exposeBias(),
and exposeDark() methods are wrapped around these methods.
SynchronousCcdDriver| Nested Class Summary | |
|---|---|
protected class |
AsynchronousCcdDriver.ExposureThread
An exposure thread start an exposure in its run method by calling the appropriate driver method. |
static class |
AsynchronousCcdDriver.Readout
The different stati of the driver. |
| Nested classes/interfaces inherited from class ccd.AbstractCcdDriver |
|---|
AbstractCcdDriver.Endurance, AbstractCcdDriver.Exposure, AbstractCcdDriver.Shot |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private ExitThread |
busy
Indicates that a thread is running. |
static String |
KEY_MAXTRANSFER
The maximum CCD to board memory transfer time. |
static String |
KEY_QUERYCYCLE
The exposure time to mimic bias exposures. |
| Fields inherited from class ccd.AbstractCcdDriver |
|---|
KEY_AMPLIFIERS, KEY_AREAREADOUT, KEY_COLUMNPOST, KEY_COLUMNPRIOR, KEY_COLUMNREADOUT, KEY_FIXEDREADOUT, KEY_INITSIZE, KEY_ROWPOST, KEY_ROWPRIOR, KEY_ROWREADOUT, KEY_XBINNING, KEY_XCHIPSIZE, KEY_XORIGIN, KEY_XSIZE, KEY_YBINNING, KEY_YCHIPSIZE, KEY_YORIGIN, KEY_YSIZE |
| Fields inherited from class io.AbstractDriver |
|---|
KEY_DRIVERNAME |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface ccd.CcdDriver |
|---|
FITSEXTENSION |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Constructor Summary | |
|---|---|
protected |
AsynchronousCcdDriver(Map<String,String> info)
Constructor. |
| Method Summary | |
|---|---|
protected abstract boolean |
abort()
Interrupts an ongoing exposure. |
boolean |
ensureReady()
If the current read-out status of the CCD is not IDLE, we query until it is. |
int |
expose()
Make an exposure. |
int |
exposeBias()
Makes a bias exposure. |
int |
exposeDark()
Makes a dark exposure. |
protected abstract AsynchronousCcdDriver.Readout |
getReadoutStatus()
Returns the readout-status of the ccd. |
boolean |
interruptProcess()
Aborts the ongoing exposure. |
boolean |
interruptProcess(Method any)
Aborts the ongoing exposure. |
boolean |
isExposing()
We query the CCD if it is exposing. |
protected abstract boolean |
startBias()
Starts a bias exposure. |
protected abstract boolean |
startDark()
Starts a dark exposure, i.e. |
protected abstract boolean |
startScience()
Starts a science exposure, i.e. |
ExitThread |
threadedBiasExpose()
Returns a thread that exposes the ccd for a science exposure when started. |
ExitThread |
threadedDarkExpose()
Returns a thread that exposes the ccd for a science exposure when started. |
ExitThread |
threadedExpose()
Returns a thread that exposes the ccd for a science exposure when started. |
| Methods inherited from class ccd.AbstractCcdDriver |
|---|
getChipSize, getReadoutTime, init, open, openController |
| Methods inherited from class io.AbstractDriver |
|---|
createDriver, equals, getDriverName, hashCode |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ccd.CcdDriver |
|---|
getBinning, getBufferType, getCcdInfo, getDataBuffer, getExposureTime, getWindow, setBinning, setDataBuffer, setExposureTime, setWindow |
| Methods inherited from interface io.Driver |
|---|
close, getDriverName, isOpen |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Field Detail |
|---|
public static final String KEY_QUERYCYCLE
public static final String KEY_MAXTRANSFER
private ExitThread busy
| Constructor Detail |
|---|
protected AsynchronousCcdDriver(Map<String,String> info)
AbstractCcdDriver.open().
| Method Detail |
|---|
public boolean interruptProcess()
throws InterruptedException
interruptProcess in interface AsynchronousInterruptedException
public boolean interruptProcess(Method any)
throws InterruptedException
interruptProcess in interface AsynchronousInterruptedException
protected abstract boolean abort()
throws IOException
IOException
protected abstract boolean startScience()
throws IOException
#startExpose is built around this method by this class.
IOException
protected abstract boolean startDark()
throws IOException
IOException
protected abstract boolean startBias()
throws IOException
startDark() with a small or zero exposure time.
IOException
protected abstract AsynchronousCcdDriver.Readout getReadoutStatus()
throws IOException
IOException
public boolean isExposing()
throws IOException
isExposing in interface CcdDriver<T>IOException
public boolean ensureReady()
throws IOException
ensureReady in interface CcdDriver<T>IOException
public int expose()
throws IOException
expose in interface CcdDriver<T>IOException - Any subclass of IOException.startExpose
public int exposeBias()
throws IOException
#KEY_SUPPORTBIAS key set to
false. In the latter case, this method thros an
UnsupportedOperationException.The data buffer has to be set prior to a call to this method.
exposeBias in interface CcdDriver<T>IOException - Any subclass of IOException.
public int exposeDark()
throws IOException
#KEY_SUPPORTDARK key set to
false. In the latter case, this method thros an
UnsupportedOperationException.The data buffer has to be set prior to a call to this method.
exposeDark in interface CcdDriver<T>IOException - Any subclass of IOException.public ExitThread threadedExpose()
threadedExpose in interface CcdDriver<T>exposepublic ExitThread threadedDarkExpose()
threadedDarkExpose in interface CcdDriver<T>exposepublic ExitThread threadedBiasExpose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||