stella.ccd
Class SesAccess
java.lang.Object
util.CommandLineParser
stella.rmi.GenericAccess
stella.ccd.CcdAccess
stella.ccd.SesAccess
public class SesAccess
- extends CcdAccess
A small program allowing access to SesControlling
enhanced objects.
The command line arguments are scanned for recognized switches and
processed accordingly. Additionally to the functionality of the parent
class ShiftListener, this class supports the following switches:
- -a: Enables automatic ccd control. If the ccd is actually
controlled by a non-automatic command caster, e.g. a
JLaunchBox, this caster should be deregistered
before enabling automatic mode. In automatic mode, only the status
retrieval and setting the manual mode is supported.
- -m: Disables automatic roof control, i.e. shifts to
a manual mode. Control with a non-automatic command caster, e.g. a
JLaunchBox, requires additionally a registering at
the new caster. Only in manual mode, all of the further actions are allowed.
- -aExp: Aborts the current exposure. The data retrieved so far
is stored in the provided fits file.
- -bExp: Takes a bias exposure. The data retrieved is stored
in the provided fits file.
- -dExp: Takes a dark exposure. The data retrieved is stored
in the provided fits file. The second paramter gives the exposure time.
- -sExp: Takes a science exposure. The data retrieved is stored
in the provided fits file. The second paramter gives the exposure time.
- -ff: Sets the camera to full frame.
- -g: Sets the image geometry. The parameters provided give the
x-offset, y-offset, x-size, y-size, x-binning factor, and the y-binning
factor, respectively.
- -k: Adds the fits key with the given name. The second paramter
points to the name of the parameter to which this key should map. The
third parameter is a comment.
- -r: Removes the fits key with the given name.
- -s: Returns the status of the ccd camera.
- -q: Quits the building controling instance.
|
Field Summary |
static String |
SIXSWITCHES
The command line switches understood by this access class, six arg. |
static String |
THREESWITCHES
The command line switches understood by this access class, three arg. |
static String |
TWOSWITCHES
The command line switches understood by this access class, two arg. |
|
Constructor Summary |
SesAccess()
Constructs a new camera access instance. |
|
Method Summary |
static void |
main(String[] arg)
Access to a camera-control object. |
protected boolean |
processSwitches(Remote listener)
Process the command line switches found. |
| Methods inherited from class util.CommandLineParser |
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TWOSWITCHES
public static final String TWOSWITCHES
- The command line switches understood by this access class, two arg.
- See Also:
- Constant Field Values
THREESWITCHES
public static final String THREESWITCHES
- The command line switches understood by this access class, three arg.
- See Also:
- Constant Field Values
SIXSWITCHES
public static final String SIXSWITCHES
- The command line switches understood by this access class, six arg.
- See Also:
- Constant Field Values
SesAccess
public SesAccess()
- Constructs a new camera access instance. The switches understood are
readily added to the command line parser.
processSwitches
protected boolean processSwitches(Remote listener)
throws RemoteException
- Process the command line switches found. If the remote reference handed
over is a
SesControlling and one of the switches
defined in CcdAccess.ZEROSWITCHES, CcdAccess.ONESWITCHES,
TWOSWITCHES,THREESWITCHES, or SIXSWITCHES
is given, the appropriate method of the listener
control is called. Note that the command line must be parsed before
calling this method.
Implementation note: Prior to the new command line switches, the one
provided by the parent class are processed.
- Overrides:
processSwitches in class CcdAccess
- Returns:
- True on success.
- Throws:
RemoteException
main
public static void main(String[] arg)
throws ParseException,
RemoteException,
NotBoundException,
MalformedURLException
- Access to a camera-control object. Command line switches may be
grouped arbitrarily.
- Throws:
ParseException
RemoteException
NotBoundException
MalformedURLException