|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CcdDriver<T>
The interface definition to a ccd driver tailored to work with Thomas
Fechner's RPC-server implementation. Not all methods are useful for
any kind of CCD driver. This is only the interface defintion,
for a concrete implementation, see FechnerDriver.
Control for a shutter is missing from this interface, as it should also be applicable to shutterless CCDs.
| Field Summary | |
|---|---|
static String |
FITSEXTENSION
General fits file name extension, including dot. |
| Method Summary | |
|---|---|
boolean |
ensureReady()
Ensures that the data can be retrieved. |
int |
expose()
Takes an exposure. |
int |
exposeBias()
Takes a bias exposure. |
int |
exposeDark()
Takes a dark exposure. |
Dimension |
getBinning()
Gets the current active binning on the server side as a object, the width being x-binning, the height
the y-binning. |
Class<T> |
getBufferType()
Returns the class-type this ccd works on. |
Map<String,Object> |
getCcdInfo()
Returns information known to the CCD in a map. |
Dimension |
getChipSize()
Return the size of the ccd. |
T |
getDataBuffer()
Returns the last data buffer set. |
long |
getExposureTime()
Returns the current active exposure time in ms. |
long |
getReadoutTime(Rectangle window)
Calculates the readout time for the given window in ms. |
Rectangle |
getWindow()
Returns the current readout window or the size of the entire chip. |
boolean |
isExposing()
Returns true, if the camera is currently exposing. |
boolean |
setBinning(int xbin,
int ybin)
Sets a new binning factor on the server side. |
boolean |
setDataBuffer(T buffer)
Sets a data buffer where the CCD-data should be stored in. |
boolean |
setExposureTime(long ms)
Sets the exposure time in milliseconds. |
boolean |
setWindow(Rectangle window)
Sets a new readout window. |
Thread |
threadedDarkExpose()
Starts an exposure the thread returned end when the exposure has finished, i.e. |
Thread |
threadedExpose()
Starts an exposure the thread returned end when the exposure has finished, i.e. |
| Methods inherited from interface io.Driver |
|---|
close, getDriverName, isOpen, open |
| Field Detail |
|---|
static final String FITSEXTENSION
| Method Detail |
|---|
long getReadoutTime(Rectangle window)
#AsynchronousCcdDrivers this method is used
in the exposure thread for waiting before querying the readout
status.
Dimension getChipSize()
boolean setBinning(int xbin,
int ybin)
throws IOException
xbin - New binning factor in x.ybin - New binning factor in y.
IOException - Any subclass of IOException
Dimension getBinning()
throws IOException
object, the width being x-binning, the height
the y-binning.
IOException - Any subclass of IOException.
boolean setWindow(Rectangle window)
throws IOException
expose(),
exposeBias() or exposeDark() will be affected. If binning
is active, it is ignored in the sense that this method always affects
physical pixels. On CCD that do not support windowing mode, an
UnsupportedOperationException may be thrown.
window - New readout window in true pixels.
IOException - Any subclass of IOException.
UnsupportedOperationException - If windowing is not supported.
Rectangle getWindow()
throws IOException
IOException - Any subclass of IOException.
boolean setExposureTime(long ms)
throws IOException
ms - The exposure time in ms.
IOException - Any subclass of IOException.
long getExposureTime()
throws IOException
IOException - Any subclass of IOException.Class<T> getBufferType()
boolean setDataBuffer(T buffer)
throws IOException
buffer - Any sort of buffer the driver knows to store CCD-data in.
IOException - Any subclass of IOException.
RuntimeException - If the buffer is not applicable for this
driver.
T getDataBuffer()
throws IOException
IOException - Any subclass of IOException.
int expose()
throws IOException
IOException - Any subclass of IOException.startExpose
Thread threadedExpose()
throws IOException
IOException - Any subclass of IOException.expose
Thread threadedDarkExpose()
throws IOException
IOException - Any subclass of IOException.expose
boolean isExposing()
throws IOException
IOException
boolean ensureReady()
throws IOException
IOException
Map<String,Object> getCcdInfo()
throws IOException
IOException
int exposeBias()
throws IOException
IOException - Any subclass of IOException.
UnsupportedOperationException - If true bias is not supported.
int exposeDark()
throws IOException
IOException - Any subclass of IOException.
UnsupportedOperationException - If dark frames are not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||