stella.adapter
Class AuxiliaryPinholeUnit

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.adapter.AuxiliaryUnit
                  extended by stella.adapter.AuxiliaryPinholeUnit
All Implemented Interfaces:
Cloneable, Guiding.RawFrame, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class AuxiliaryPinholeUnit
extends AuxiliaryUnit

A secondary unit on a guider system is used to trace slow drifts of the guiding system. In STELLA, we use an image of the fiber entrance for slowly shifting the center of the primary guiding system AuxiliaryGuidingUnit.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
static String KEY_BIASPINHOLEFITS
          Headerless name of the bias fits file, if we have any.
static String KEY_BIASPINHOLETIME
          Integration time on the bias fits.
static String KEY_DARKPINHOLEFITS
          Headerless name of the dark fits file, if we have any.
static String KEY_DARKPINHOLETIME
          Time of the dark fits file, if we have any.
static String KEY_PINHOLEBINNING
          The binning used during guiding.
static String KEY_PINHOLEFRAME
          The window on the guider ccd used on guiding, unbinned.
 
Fields inherited from class stella.adapter.AuxiliaryUnit
COARSETYPE, FINETYPE, GUIDERTYPE, KEY_FALLBACK, KEY_GUIDERTILE, PINHOLETYPE
 
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
AuxiliaryPinholeUnit(Map<String,String> prop)
          Defaults frames and bias etc.
 
Method Summary
protected  ErrorEvent doAuxiliaryTask(String mode)
          Does the secondary guiding task.
protected  String getAuxiliaryType()
          The type of the secondary unit.
protected  Point2D getFocusPoint()
          The focus point is always the point in the center of the frame.
 
Methods inherited from class stella.adapter.AuxiliaryUnit
getBiasFrame, getBiasTime, getBinning, getDarkFrame, getDarkTime, getGuider, getMaster, getReadoutFrame, getTelescope, isManual, isValid, setGuider, setManual, setMaster, setTelescope
 
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, init, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 
Methods inherited from interface util.Initializable
init
 

Field Detail

KEY_PINHOLEFRAME

public static final String KEY_PINHOLEFRAME
The window on the guider ccd used on guiding, unbinned.

See Also:
Constant Field Values

KEY_PINHOLEBINNING

public static final String KEY_PINHOLEBINNING
The binning used during guiding.

See Also:
Constant Field Values

KEY_BIASPINHOLEFITS

public static final String KEY_BIASPINHOLEFITS
Headerless name of the bias fits file, if we have any.

See Also:
Constant Field Values

KEY_BIASPINHOLETIME

public static final String KEY_BIASPINHOLETIME
Integration time on the bias fits.

See Also:
Constant Field Values

KEY_DARKPINHOLEFITS

public static final String KEY_DARKPINHOLEFITS
Headerless name of the dark fits file, if we have any.

See Also:
Constant Field Values

KEY_DARKPINHOLETIME

public static final String KEY_DARKPINHOLETIME
Time of the dark fits file, if we have any.

See Also:
Constant Field Values
Constructor Detail

AuxiliaryPinholeUnit

public AuxiliaryPinholeUnit(Map<String,String> prop)
Defaults frames and bias etc.

Method Detail

getAuxiliaryType

protected String getAuxiliaryType()
The type of the secondary unit. We use images of pinhole, thus we return AuxiliaryUnit#PINHOLE here.

Specified by:
getAuxiliaryType in class AuxiliaryUnit

getFocusPoint

protected Point2D getFocusPoint()
The focus point is always the point in the center of the frame.

Specified by:
getFocusPoint in class AuxiliaryUnit

doAuxiliaryTask

protected ErrorEvent doAuxiliaryTask(String mode)
Does the secondary guiding task. For that, it should be started similarily to AuxiliaryGuidingUnit.doAuxiliaryTask(java.lang.String), and also get a reference to this unit to allow slow drifts of the primary guiding center.

Specified by:
doAuxiliaryTask in class AuxiliaryUnit
Parameters:
mode - An integer specifying the action to be taken.
Returns:
null on okay, or an ErrorEvent desribing the failure.