stella.jview
Class JPointingGrabber

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by util.rmi.RmiPropertyContainer
                  extended by util.rmi.AbstractRmiListener
                      extended by stella.util.PointingGrabber
                          extended by stella.jview.JPointingGrabber
All Implemented Interfaces:
Cloneable, Remote, EventListener, Displayable, RmiErrorListener, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, RmiEventListener, RmiListener, RmiPropertyBearing

public class JPointingGrabber
extends PointingGrabber
implements Displayable

A simple extension to a JLaunchBox with the sole purpose to send status commands to the telescope and retrieve the pointing information from the telescope out of the received TelescopeStatus status. The proceedure is as follows: Start the pointing model with

   java stella.jview.JPointingModel\$Crutch [pointing.prop]
   
The properties file contains info needed to connect to the atis server. For a pure listening setup, you can rely on the default properties, thus starting the pointing model without any argument. A typical window looks like this:

JPointingGrabber

Then, select a star, e.g. using xephem, insert its coordinates in the PILAR gui and slide the telescope to this position, using no offsets. You can also use a prepared master mind to do this job for you, using a target manager table.
Now, try to center the star using the bottle or whatever necessary in the field of view. Once you are satisfied, press the single STATUS_TELESCOPE button, or, if working with a special master mind, slide the 'RequestPointing' slider to true. A request is sent to the telescope to tell its position. The incomming TelescopeStatus is parsed for the necessary information and displayed on the screen as well as writtn into the #KEY_POINTINGFILE in plain ascii. Once you've recorded enough data, press exit and use the data file as input in the pointing model. If you are brave, you can hand-edit the pointing data file and add some errors to it, per default we write all 1s.
Now, feed the data into the pointing model calculator (issue without arguments for a description):
   java stella.util.PointingModel pointing.data
   
Feed the fitting values into pilar's classical pointing model (~observer/pilar/config/pilar.pm.prop), considering What to do if something does not work:


Nested Class Summary
static class JPointingGrabber.Crutch
          Stats the pointing grabber.
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private  JTextArea data
          A text field where I issue the pointing model data.
private static Dimension DEFDATASIZE
          The default data size.
private static String DEFTITLE
          The key to this launch box title.
static String KEY_DATASIZE
          The pixel size of the data sheet display.
static String KEY_TITLE
          The key to this launch box title.
 
Fields inherited from class stella.util.PointingGrabber
KEY_DATAFORMAT, KEY_POINTINGDATE, KEY_POINTINGEXT, KEY_POINTINGHEAD, KEY_TELESCOPE
 
Fields inherited from class util.rmi.AbstractRmiListener
KEY_ALIVE, KEY_EXPORTPORT, KEY_INIT, KEY_LISTENERNAME, KEY_RETRY, KEY_RETRYSLEEP, KEY_SHUTDOWNDELAY
 
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 util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
JPointingGrabber(Map prop)
          Constructs a new pointing grabber object.
 
Method Summary
protected  void addPointingData(String dataline)
          Adds a single pointing data line to our data file.
 Icon getIcon()
          Might return an icon, if one was stated in the properties
 Component getRepresentation()
          Returns a panel where the status panel and the jdisplayables are combined.
 void init()
          Additionally construct the data text area and open the output file.
 
Methods inherited from class stella.util.PointingGrabber
compose, deregisterAtCaster, exit, registerAtCaster, rmiErrorOccured
 
Methods inherited from class util.rmi.AbstractRmiListener
allBound, blockBinding, blockBinding, disconnect, getIP, getListenerName, isConnected, listenerName, releaseBinding, releaseBinding, rescanned, startBinding, startBinding
 
Methods inherited from class util.rmi.RmiPropertyContainer
containsRemoteProperty, getRemoteProperties, getRemoteProperty, setRemoteProperty
 
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, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.rmi.RmiEventListener
getListenerName
 
Methods inherited from interface util.rmi.RmiListener
disconnect, isConnected
 
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

KEY_TITLE

public static final String KEY_TITLE
The key to this launch box title. Should be related to the server.

See Also:
Constant Field Values

KEY_DATASIZE

public static final String KEY_DATASIZE
The pixel size of the data sheet display.

See Also:
Constant Field Values

DEFTITLE

private static final String DEFTITLE
The key to this launch box title. Should be related to the server.

See Also:
Constant Field Values

DEFDATASIZE

private static final Dimension DEFDATASIZE
The default data size.


data

private JTextArea data
A text field where I issue the pointing model data.

Constructor Detail

JPointingGrabber

public JPointingGrabber(Map prop)
                 throws RemoteException
Constructs a new pointing grabber object.

Throws:
RemoteException
Method Detail

init

public void init()
Additionally construct the data text area and open the output file. If the ouput file exists, we read in the data and display it in the text area. New data is appended. If the file does not exist, we write header information.

Specified by:
init in interface Initializable
Overrides:
init in class PointingGrabber

getIcon

public Icon getIcon()
Might return an icon, if one was stated in the properties

Specified by:
getIcon in interface Displayable

getRepresentation

public Component getRepresentation()
Returns a panel where the status panel and the jdisplayables are combined. The data text area is constructed in the init() section.

Specified by:
getRepresentation in interface Displayable

addPointingData

protected void addPointingData(String dataline)
Description copied from class: PointingGrabber
Adds a single pointing data line to our data file.

Overrides:
addPointingData in class PointingGrabber