stella.parameter
Class MirrorTemperature
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractCachedParameter
stella.parameter.AbstractStatusRequestor
stella.parameter.MirrorTemperature
- All Implemented Interfaces:
- Cloneable, ErrorDependingParameter, Parameter, StatusRequesting, Value, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, Reloadable, ResourceSupplying
public class MirrorTemperature
- extends AbstractStatusRequestor
- implements Value, Reloadable
A simple parameter that reflects the currently attained focus position of
the telescope. It can either be updated with a TelescopeStatus
event using the information stored there, or it can be set externally
by passing a Double to its AbstractCachedParameter.set(java.lang.Object) method.
| Methods inherited from class stella.parameter.AbstractParameter |
createParameter, delivers, exit, getFormatted, getName, getPreserveFile, getString, getString, 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 |
KEY_TEMPERATURE
public static final String KEY_TEMPERATURE
- The key pointing to a dummy temperature.
- See Also:
- Constant Field Values
KEY_MIRRORNAME
public static final String KEY_MIRRORNAME
- The key to the mirror name.
- See Also:
- Constant Field Values
DEFTEMPERATURE
private static final double DEFTEMPERATURE
- The home position of the telescope. Value adopted at construct.
- See Also:
- Constant Field Values
DEFMIRRORNAME
private static final String DEFMIRRORNAME
- The default mirror name.
- See Also:
- Constant Field Values
DEFCOMMAND
private static final String DEFCOMMAND
- The default class name of the status event to tackle.
- See Also:
- Constant Field Values
df
private static final DecimalFormat df
- The formatter for the telescope altitude.
MirrorTemperature
public MirrorTemperature(Map prop)
- Constructs a new alt telescope parameter. Until the first
TelescopeStatus event is registered, this parameter points to
the home focus of the telescope #KEY_FOCUS.
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 AbstractStatusRequestor
setValue
public Number setValue(Number newaz)
- Sets the azimuth of the telescope.
- Specified by:
setValue in interface Value
getValue
public Number getValue()
- Returns the azimuth of the telescope. Deduced from the last
TelescopeStatus event registered to this parameter.
- Specified by:
getValue in interface Value
getFormatted
public String getFormatted()
- Returns the azimuth of the telescope in a properly formatted way.
- Specified by:
getFormatted in interface Parameter- Overrides:
getFormatted in class AbstractParameter
getForError
public Object getForError(ErrorEvent ee)
- Returns the azimuth of the telescope deduced from a freshly received
TelescopeStatus. This method is probably not extremly useful,
normally a TelescopeStatus error will be registered to this
parameter and its value queried later.
- Specified by:
getForError in interface ErrorDependingParameter
isStatusRequested
protected boolean isStatusRequested(ErrorEvent ee)
- Returns true if the error event received is of
TelescopeStatus
- Specified by:
isStatusRequested in class AbstractStatusRequestor