stella.adapter
Class GuiderAccess

java.lang.Object
  extended by util.CommandLineParser
      extended by stella.rmi.GenericAccess
          extended by stella.adapter.GuiderAccess
Direct Known Subclasses:
AdapterAccess, AuxiliaryAccess

public class GuiderAccess
extends GenericAccess

Allows acces to the adapter in manual mode according to GuiderControlling. Warning: This class requires the adapter master to listen to the altitude and image rotation parameters with its default names. Access to them should be blocking.
On successful list generation/acquire, some status messages will be sent back to any registered listener.


Nested Class Summary
static class GuiderAccess.Extract
          Test parsing of resources.
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private  float[] bv
          The extractStars(java.lang.String) sets this array.
private  double[] de
          The extractStars(java.lang.String) sets this array.
private static Double DEFFOV
          The field-of-view for unspecified simbad queries.
private  float[] m
          The extractStars(java.lang.String) sets this array.
static String NULLSWITCHES
          The command line switches understood by this access class.
static String ONESWITCHES
          The command line switches understood by this access class.
private  double[] ra
          The extractStars(java.lang.String) sets this array.
static String THREESWITCHES
           
static String TWOSWITCHES
          The command line switches understood by this access class.
 
Fields inherited from class stella.rmi.GenericAccess
FOOT, USE, ZEROSWITCHES
 
Constructor Summary
GuiderAccess()
          Constructs a new building access instance.
 
Method Summary
private  boolean extractStars(String inline)
          Parses the star data out of a target xml file.
static void main(String[] arg)
          Access to a calibration-control object.
protected  boolean processSwitches(Remote listener)
          Process the command line switches found.
private  boolean setStarArray(List fov)
          Sets the arrays from a field of view.
 
Methods inherited from class stella.rmi.GenericAccess
processFor, scanFor
 
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
 

Field Detail

NULLSWITCHES

public static final String NULLSWITCHES
The command line switches understood by this access class.

See Also:
Constant Field Values

ONESWITCHES

public static final String ONESWITCHES
The command line switches understood by this access class.

See Also:
Constant Field Values

TWOSWITCHES

public static final String TWOSWITCHES
The command line switches understood by this access class.

See Also:
Constant Field Values

THREESWITCHES

public static final String THREESWITCHES
See Also:
Constant Field Values

DEFFOV

private static final Double DEFFOV
The field-of-view for unspecified simbad queries.


ra

private double[] ra
The extractStars(java.lang.String) sets this array.


de

private double[] de
The extractStars(java.lang.String) sets this array.


m

private float[] m
The extractStars(java.lang.String) sets this array.


bv

private float[] bv
The extractStars(java.lang.String) sets this array.

Constructor Detail

GuiderAccess

public GuiderAccess()
Constructs a new building access instance. The switches understood are readily added to the command line parser.

Method Detail

processSwitches

protected boolean processSwitches(Remote listener)
                           throws RemoteException
Process the command line switches found. If the remote reference handed over is a GuiderControlling and one of the switches defined in #SWITCHES 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 GenericAccess
Returns:
True on success.
Throws:
RemoteException

extractStars

private boolean extractStars(String inline)
Parses the star data out of a target xml file. The file must harbour a 'main' target entry

Parameters:
inline - xml target definition file.
Returns:
True if extracting was successful.

setStarArray

private boolean setStarArray(List fov)
Sets the arrays from a field of view.


main

public static void main(String[] arg)
                 throws ParseException,
                        RemoteException,
                        NotBoundException,
                        MalformedURLException
Access to a calibration-control object. Command line switches may be grouped arbitrarily.

Throws:
ParseException
RemoteException
NotBoundException
MalformedURLException