|
||||||||||
| 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.SynchronousCcdDriver<String>
ccd.FechnerDriver
public class FechnerDriver
The class to work with thomas fechner's guider ccd.
| Nested Class Summary | |
|---|---|
static class |
FechnerDriver.Test
A test class. |
| Nested classes/interfaces inherited from class ccd.SynchronousCcdDriver |
|---|
SynchronousCcdDriver.ExposureThread |
| 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 CCDClient |
ccdclient
RPC client instance. |
private cmd |
command
cmd instance to specify the arguments for client functions. |
private static boolean |
DEFCOUNTERRESET
Default property value. |
static String |
DEFDRIVERNAME
Default name of the fechner ccd driver. |
private static long |
DEFEXPOSEMULTIPLY
Default property value. |
private static boolean |
DEFINCREMENTING
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 int |
fitscount
Internal counter to keep track of incremental images. |
private static NumberFormat |
INCREMENTFORMAT
Formatter for running fits number.. |
static String |
INCREMENTSEPARATOR
General separator between fits filename and running number. |
static String |
KEY_COUNTERRESET
If true, driver resets counter at any call to incrementing. |
static String |
KEY_EXPOSEMULTIPLY
The multiplier for exposure times returned to ms. |
static String |
KEY_INCREMENTING
Image incrementing at init. |
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 int |
OK
General return code from rpc calls indicating okay. |
private erg |
result
erg instance to access return values of the client functions. |
| 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 | |
|---|---|
FechnerDriver(Map<String,String> info)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
clearArguments()
Initalizies the RPC function arguments. |
boolean |
close()
Close the RPC communication. |
int |
expose()
Make an exposure. |
int |
exposeBias()
Makes a bias exposure. |
int |
exposeDark()
Makes a dark exposure. |
Dimension |
getBinning()
Get the binning values in x (columns) and y (rows). |
Class<String> |
getBufferType()
We work on strings, that are the file names of the fits files stored. |
Map |
getCcdInfo()
This ccd does not provide any additional info. |
String |
getDataBuffer()
Returns the output buffer. |
long |
getExposureTime()
Get the current exposure time in milliseconds. |
private String |
getFitsDir()
Get current FITS file output directory. |
protected String |
getFitsName()
Get the current base of the output FITS file. |
protected Dimension |
getMaxPixel()
Get the max_pixel values for x (columns) and y (rows). |
Rectangle |
getWindow()
Get the current image origin (pre-gap) in x (columns) and y (rows) and the size |
void |
init()
On init, we default the initial read-out window to the chip size. |
boolean |
isIncrementing()
Get the increment status. |
boolean |
isOpen()
We consider the driver to be open if the ccdclient is initialized. |
protected boolean |
openController()
Initializes an RPC driver. |
boolean |
setBinning(int xbin,
int ybin)
Set the binning values in x (columns) and y (rows). |
boolean |
setDataBuffer(String file)
Sets the output buffer. |
boolean |
setExposureTime(long exptime)
Set the current exposure time in milliseconds. |
private boolean |
setFitsDir(String dir)
Sets the fits directory. |
protected boolean |
setFitsName(String filename)
Set the current name of the output FITS file. |
boolean |
setIncrementing(boolean set)
Set the increment status parameter: true = increments a file number for storing all fits files, false = overwriting of existing files. |
protected boolean |
setMaxPixel(Dimension max)
Set the max_pixel values for x (columns) and y (rows). |
boolean |
setWindow(Rectangle window)
Set the current image window. |
| Methods inherited from class ccd.SynchronousCcdDriver |
|---|
ensureReady, isExposing, threadedDarkExpose, threadedExpose |
| Methods inherited from class ccd.AbstractCcdDriver |
|---|
getChipSize, getReadoutTime, 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 INCREMENTSEPARATOR
public static final int OK
public static final String KEY_INCREMENTING
public static final String KEY_COUNTERRESET
public static final String KEY_SERVERNAME
public static final String KEY_SERVERPATH
public static final String KEY_EXPOSEMULTIPLY
public static final String KEY_RPCTIMEOUT
public static final String DEFDRIVERNAME
private static final String DEFSERVERNAME
private static final String DEFSERVERPATH
private static final int DEFRPCTIMEOUT
private static final boolean DEFINCREMENTING
private static final boolean DEFCOUNTERRESET
private static final long DEFEXPOSEMULTIPLY
private CCDClient ccdclient
private cmd command
private erg result
private int fitscount
private static final NumberFormat INCREMENTFORMAT
| Constructor Detail |
|---|
public FechnerDriver(Map<String,String> info)
init().
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class AbstractCcdDriver<String>
protected boolean openController()
throws IOException
openController in class AbstractCcdDriver<String>IOException - If controller connection fails.public boolean isOpen()
public boolean close()
throws IOException
IOExceptionpublic Map getCcdInfo()
public int expose()
throws IOException
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.
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.
IOException - Any subclass of IOException.
public boolean setDataBuffer(String file)
throws IOException
File or
URL object, a
ClassCastException is thrown. In case of invoking this method
with an URL, only the file part is kept.
file - Any sort of buffer the driver knows to store CCD-data in.
IOException - Any subclass of IOException.
public String getDataBuffer()
throws IOException
-0000n, n being
the internal fits counter, to the file name returned. An ending
#FITS is appended. Return type is of String. Can be used with
a class loader to find the resource.
IOException - Any subclass of IOException.public Class<String> getBufferType()
public boolean setBinning(int xbin,
int ybin)
throws IOException
xbin - binning factor in x-direction (1 <= binning factor <= 255)ybin - binning factor in y-direction (1 <= binning factor <= 255)
IOException - Any subclass of IOException
public Dimension getBinning()
throws IOException
IOException - Any subclass of IOException.
public boolean setWindow(Rectangle window)
throws IOException
window - The origin being the upper left corner of the rectangle.
IOException - Any subclass of IOException.
public Rectangle getWindow()
throws IOException
IOException - Any subclass of IOException.
public boolean setExposureTime(long exptime)
throws IOException
expTime - exposure time in milliseconds. (0 <= expTime < 65536 ms)
IOException - Any subclass of IOException.
public long getExposureTime()
throws IOException
IOException - Any subclass of IOException.protected void clearArguments()
protected boolean setMaxPixel(Dimension max)
throws IOException
xmax - maximum CCD size in x-direction (1 <= value < 65536)ymax - maximum CCD size in y-direction (1 <= value < 65536)
IOException
protected Dimension getMaxPixel()
throws IOException
IOException
protected boolean setFitsName(String filename)
throws IOException
fileName - output FITS filename.
IOException
private boolean setFitsDir(String dir)
throws IOException
IOException
protected String getFitsName()
throws IOException
IOException
private String getFitsDir()
throws IOException
IOException
public boolean setIncrementing(boolean set)
throws IOException
WARNING: There is no way to query TF's server for the true fits name,
thus setting this option may result in image trace lost. If this is not
what is intended, a partial workaround is to reset the internal
counter in TF guider_server.c, called BaseFn in each call
to the set_increment_1_svc method (which would be a good
idea anyhow). This allows tracing of the fits extension, but only,
if no fits file with this extension already exists.
set - boolean to set the incrementing facility.
IOException
public boolean isIncrementing()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||