|
||||||||||
| 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<File>
stella.ccd.JanosDriver
public class JanosDriver
The class to work with Janos Bartus's implementation of the Kopenhagen ccd.
| Nested Class Summary | |
|---|---|
static class |
JanosDriver.Abort
A test class. |
static class |
JanosDriver.Bias
A test class. |
static class |
JanosDriver.Flats
A test class. |
static class |
JanosDriver.Test
A test class. |
| Nested classes/interfaces inherited from class ccd.AsynchronousCcdDriver |
|---|
AsynchronousCcdDriver.ExposureThread, AsynchronousCcdDriver.Readout |
| 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 SesCamClient |
ccdclient
RPC client instance. |
static String |
CCDTEMP
The keyword for the CCD temperature. |
private static boolean |
DEFAUTOCLEAR
Default property value. |
private static boolean |
DEFAUTOREADOUT
Default property value. |
private static boolean |
DEFAUTOSHUTTER
Default property value. |
private static long |
DEFBIASTIME
Default property value. |
static String |
DEFDRIVERNAME
Default name of the fechner ccd driver. |
private static int |
DEFMAXTRANSFER
Default property value. |
private static long |
DEFQUERYCYCLE
Default property value. |
private static String |
DEFREADOUTDIRECTION
Default property value. |
private static int |
DEFRETRYCOUNT
Default property value. |
private static long |
DEFRETRYTIME
Default property value. |
private static int |
DEFRPCTIMEOUT
Default property value. |
private static String |
DEFSERVERNAME
Default property value. |
private static String |
DEFSERVERPATH
Default property value. |
private static boolean |
DEFSETREADOUT
Default property value. |
private static boolean |
DEFSUPPORTDARK
Default property value. |
private static int |
DEFXCHIPSIZE
Default property value. |
private static int |
DEFXORIGIN
Default property value. |
private static int |
DEFYCHIPSIZE
Default property value. |
private static int |
DEFYORIGIN
Default property value. |
static String |
KEY_AUTOCLEAR
Auto clear behaviour. |
static String |
KEY_AUTOREADOUT
Auto readout behaviour. |
static String |
KEY_AUTOSHUTTER
Auto shutter behaviour. |
static String |
KEY_BIASTIME
The exposure time to mimic bias exposures. |
static String |
KEY_QUERYCYCLE
The time intervall at which the status is queried. |
static String |
KEY_READOUTDIRECTION
The amplifiers read-out direction as a string . |
static String |
KEY_RETRYCOUNT
The maximum number of tries to set values in the Copenhagen contr. |
static String |
KEY_RETRYTIME
The time in ms to wait for retry of auto-shutter etc.. |
static String |
KEY_RPCTIMEOUT
The RPC time-out in millisecond. |
static String |
KEY_SERVERNAME
FCDN of the host where the guider rpc server is running. |
static String |
KEY_SERVERPATH
The path where the server should store its fits. |
static String |
KEY_SETREADOUT
If false, read-out direction is not changed. |
static String |
LN2TEMP
The keyword for the CCD temperature. |
private static int |
OK
The return-value for successfule set co0mmands. |
static String |
PRESSURE
The keyword for the head pressure. |
static String |
REFTEMP
The keyword for the CCD temperature. |
private File |
use
The full path of the data fits file. |
| Fields inherited from class ccd.AsynchronousCcdDriver |
|---|
KEY_MAXTRANSFER |
| 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 | |
|---|---|
JanosDriver(Map info)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
abort()
Aborts an ongoing exposure. |
boolean |
close()
Close the RPC communication. |
void |
exit()
On exit, we close. |
protected boolean |
getAutoClear()
Returns true if auto-clean is set. |
protected boolean |
getAutoReadout()
Returns the autoreadout setting. |
protected boolean |
getAutoWindmillShutter()
Returns the autoshutter setting. |
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<File> |
getBufferType()
Returns the class-type this ccd works on. |
private int |
getCameraMode()
Returns the camera mode integer. |
Map |
getCcdInfo()
Returns information known to the CCD in a map. |
private int |
getCCDTemp()
Returns CCD temperature. |
File |
getDataBuffer()
Returns the last data buffer set. |
long |
getExposureTime()
Returns the current active exposure time in ms. |
protected long |
getExposureTimeLeft()
Returns the remaining exposure time in ms. |
private int |
getFrameType()
Returns the image frame type integer. |
private int |
getLn2Temp()
Returns the LN2 temperature. |
protected Dimension |
getMaxPixel()
Get the max_pixel values for x (columns) and y (rows). |
private boolean |
getMppMode()
Returns true if the camera is in mpp mode? |
private int |
getPressure()
Returns the camera head pressure value. |
private int |
getReadoutDirection()
Returns an integer corresponding to the readout direction. |
protected AsynchronousCcdDriver.Readout |
getReadoutStatus()
Returns the camera readout status. |
private int |
getRefTemp()
Returns the reference temperature. |
private int |
getTcla()
Returns camera pixel clamp time in ms. |
private int |
getTsam()
Returns the camera pixel sampling time in ms. |
Rectangle |
getWindow()
Returns the current readout window or the size of the entire chip. |
boolean |
isOpen()
We consider the driver to be open if the ccdclient is initialized. |
protected boolean |
openController()
Initializes the fechner driver. |
boolean |
reset()
Makes a format reset on the camera. |
protected boolean |
setAutoClear(boolean enabled)
Enable/disable if the camera should autoclear before exposure. |
protected boolean |
setAutoReadout(boolean enabled)
Enable/disable if camera should start readout automatically after exposure. |
protected boolean |
setAutoWindmillShutter(boolean enabled)
Enable/disable automatic shutter control. |
boolean |
setBinning(int xbin,
int ybin)
Sets a new binning factor on the server side. |
boolean |
setDataBuffer(File usename)
Sets a data buffer where the CCD-data should be stored in. |
boolean |
setExposureTime(long ms)
Sets the exposure time in milliseconds. |
private boolean |
setReadoutDirection(String dir)
Sets the readout direction. |
private boolean |
setTcla(int time_ms)
Sets camera pixel clamp time in ms. |
private boolean |
setTsam(int time_ms)
Sets the camera pixel sampling time in ms. |
boolean |
setWindow(Rectangle window)
Sets a new readout window. |
protected boolean |
startBias()
Starts a bias exposure, which is a dark with small integration time. |
protected boolean |
startDark()
Start a dark exposure, exposure time was set before. |
protected boolean |
startScience()
Start an exposure, exposure time was set before. |
private boolean |
toggleMppMode()
Toggles the camera mpp mode. |
private boolean |
writeFits(String fitspath)
Write the FITS file in the specified full path. |
| Methods inherited from class ccd.AsynchronousCcdDriver |
|---|
ensureReady, expose, exposeBias, exposeDark, interruptProcess, interruptProcess, isExposing, threadedBiasExpose, threadedDarkExpose, threadedExpose |
| Methods inherited from class ccd.AbstractCcdDriver |
|---|
getChipSize, getReadoutTime, init, open |
| 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 io.Driver |
|---|
getDriverName |
| 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 PRESSURE
public static final String CCDTEMP
public static final String LN2TEMP
public static final String REFTEMP
public static final String KEY_SERVERNAME
public static final String KEY_SERVERPATH
public static final String KEY_AUTOCLEAR
public static final String KEY_AUTOREADOUT
public static final String KEY_AUTOSHUTTER
public static final String KEY_SETREADOUT
public static final String KEY_READOUTDIRECTION
public static final String KEY_QUERYCYCLE
public static final String KEY_RETRYCOUNT
public static final String KEY_RETRYTIME
public static final String KEY_RPCTIMEOUT
public static final String KEY_BIASTIME
private static final int OK
public static final String DEFDRIVERNAME
private static final boolean DEFSETREADOUT
private static final String DEFREADOUTDIRECTION
private static final boolean DEFAUTOCLEAR
private static final boolean DEFAUTOREADOUT
private static final boolean DEFAUTOSHUTTER
private static final int DEFXORIGIN
private static final int DEFYORIGIN
private static final int DEFXCHIPSIZE
private static final int DEFYCHIPSIZE
private static final String DEFSERVERNAME
private static final String DEFSERVERPATH
private static final boolean DEFSUPPORTDARK
private static final long DEFQUERYCYCLE
private static final int DEFMAXTRANSFER
private static final int DEFRETRYCOUNT
private static final long DEFRETRYTIME
private static final int DEFRPCTIMEOUT
private static final long DEFBIASTIME
private SesCamClient ccdclient
private File use
| Constructor Detail |
|---|
public JanosDriver(Map info)
AbstractCcdDriver.init().
| Method Detail |
|---|
protected boolean openController()
throws IOException
openController in class AbstractCcdDriver<File>IOException - If controller connection fails.public boolean isOpen()
isOpen in interface Driver
public boolean close()
throws IOException
close in interface DriverIOExceptionpublic void exit()
exit in interface ExitCleaning
public boolean setBinning(int xbin,
int ybin)
throws IOException
setBinning in interface CcdDriver<File>xbin - New binning factor in x.ybin - New binning factor in y.
IOException - Any subclass of IOException
public Dimension getBinning()
throws IOException
object, the width being x-binning, the height
the y-binning.
getBinning in interface CcdDriver<File>IOException - Any subclass of IOException.
public boolean setWindow(Rectangle window)
throws IOException
AsynchronousCcdDriver.expose(),
AsynchronousCcdDriver.exposeBias() or AsynchronousCcdDriver.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.
setWindow in interface CcdDriver<File>window - New readout window in true pixels.
IOException - Any subclass of IOException.
UnsupportedOperationException - If windowing is not supported.
public Rectangle getWindow()
throws IOException
getWindow in interface CcdDriver<File>IOException - Any subclass of IOException.
public boolean setExposureTime(long ms)
throws IOException
setExposureTime in interface CcdDriver<File>ms - The exposure time in ms.
IOException - Any subclass of IOException.
public long getExposureTime()
throws IOException
getExposureTime in interface CcdDriver<File>IOException - Any subclass of IOException.public boolean setDataBuffer(File usename)
setDataBuffer in interface CcdDriver<File>file - A fully specified path, either string, file, or url
IOException - Any subclass of IOException.
RuntimeException - If the buffer is not applicable for this
driver.
public File getDataBuffer()
throws IOException
getDataBuffer in interface CcdDriver<File>IOException - Any subclass of IOException.public Class<File> getBufferType()
CcdDriver
getBufferType in interface CcdDriver<File>
public Map getCcdInfo()
throws IOException
getCcdInfo in interface CcdDriver<File>IOException
public boolean reset()
throws IOException
IOException
protected boolean abort()
throws IOException
abort in class AsynchronousCcdDriver<File>IOException
protected boolean startScience()
throws IOException
startScience in class AsynchronousCcdDriver<File>IOException
protected boolean startDark()
throws IOException
startDark in class AsynchronousCcdDriver<File>IOException
protected boolean startBias()
throws IOException
startBias in class AsynchronousCcdDriver<File>IOException
protected Dimension getMaxPixel()
throws IOException
IOException
protected boolean setAutoClear(boolean enabled)
throws IOException
IOException
protected boolean getAutoClear()
throws IOException
IOException
protected boolean setAutoReadout(boolean enabled)
throws IOException
IOException
protected boolean getAutoReadout()
throws IOException
IOException
protected boolean setAutoWindmillShutter(boolean enabled)
throws IOException
IOException
protected boolean getAutoWindmillShutter()
throws IOException
IOException
protected AsynchronousCcdDriver.Readout getReadoutStatus()
throws IOException
getReadoutStatus in class AsynchronousCcdDriver<File>IOException
protected long getExposureTimeLeft()
throws IOException
IOException
private boolean toggleMppMode()
throws IOException
IOException
private boolean getMppMode()
throws IOException
IOException
private boolean setTsam(int time_ms)
throws IOException
time_ms - time in milliseconds.
IOException
private int getTsam()
throws IOException
IOException
private boolean setTcla(int time_ms)
throws IOException
time_ms - time in milliseconds.
IOException
private int getTcla()
throws IOException
IOException
private int getCameraMode()
throws IOException
IOException
private int getFrameType()
throws IOException
IOException
private int getPressure()
throws IOException
IOException
private int getCCDTemp()
throws IOException
IOException
private int getLn2Temp()
throws IOException
IOException
private int getRefTemp()
throws IOException
IOException
private boolean setReadoutDirection(String dir)
throws IOException
dir - readout direction string ("A", "B" or "AB").
IOException
private int getReadoutDirection()
throws IOException
IOException
private boolean writeFits(String fitspath)
throws IOException
fitspath - string of the full path of the FITS file.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||