stella.parameter
Class FwhmAdapter
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractValue
stella.parameter.FwhmAdapter
- All Implemented Interfaces:
- Cloneable, ErrorDependingParameter, Parameter, Value, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, Reloadable, ResourceSupplying
public class FwhmAdapter
- extends AbstractValue
- implements ErrorDependingParameter, Reloadable
A parameter that utilizes incoming AdapterFwhm status messages
to derive the reported star fwhm (in arcseconds) out of it. This can be
used as a crude seeing estimate.
|
Field Summary |
static String |
DEFNAME
The default name of the adapter flux. |
private Double |
fwhm
The current fwhm reported. |
|
Constructor Summary |
FwhmAdapter(Map prop)
Constructs a new adapter fwhm value. |
| Methods inherited from class stella.parameter.AbstractParameter |
createParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, init, register, setName, toString |
| 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 |
| 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 |
DEFNAME
public static final String DEFNAME
- The default name of the adapter flux.
- See Also:
- Constant Field Values
fwhm
private Double fwhm
- The current fwhm reported.
FwhmAdapter
public FwhmAdapter(Map prop)
- Constructs a new adapter fwhm value. The name is defaulted.
rescanned
public double rescanned(String key,
String old,
String newval)
- Makes this method public, no further changes.
- Specified by:
rescanned in interface Reloadable- Overrides:
rescanned in class AbstractParameter
getForError
public Object getForError(ErrorEvent ee)
- Scans the
AdapterFwhm for the fwhm and returns it as a
Double object
- Specified by:
getForError in interface ErrorDependingParameter
- Returns:
- null If the error event passed over is not an adapter fwhm.
registerError
public void registerError(ErrorEvent ee)
- Registers this adapter fwhm event to the parameter.
- Specified by:
registerError in interface ErrorDependingParameter
getValue
public Number getValue()
- Gets the last reported fwhm of a star image obtained during centering
or guiding on the adapter. The number is identically to the fwhm value
transported in the
AdapterFwhm object. It should be given in
arcseconds.
- Specified by:
getValue in interface Value
setValue
public Number setValue(Number newval)
- Sets the fwhm of the star image. Probably only needed for setting after
error retrieval or for debugging issues.
- Specified by:
setValue in interface Value