public class MirrorTemperature extends AbstractStatusRequestor implements Value, Reloadable
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.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFCOMMAND
The default class name of the status event to tackle.
|
private static String |
DEFMIRRORNAME
The default mirror name.
|
private static double |
DEFTEMPERATURE
The home position of the telescope.
|
private static DecimalFormat |
df
The formatter for the telescope altitude.
|
static String |
KEY_MIRRORNAME
The key to the mirror name.
|
static String |
KEY_TEMPERATURE
The key pointing to a dummy temperature.
|
KEY_COMMAND, KEY_DISABLE, KEY_TIMEOUTKEY_CACHEKEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSNAMING_EXTENSIONKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
MirrorTemperature(Map prop)
Constructs a new alt telescope parameter.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getForError(ErrorEvent ee)
Returns the azimuth of the telescope deduced from a freshly received
TelescopeStatus. |
String |
getFormatted()
Returns the azimuth of the telescope in a properly formatted way.
|
Number |
getValue()
Returns the azimuth of the telescope.
|
protected boolean |
isStatusRequested(ErrorEvent ee)
Returns true if the error event received is of
TelescopeStatus |
double |
rescanned(String key,
String old,
String newval)
Makes this method public, no further changes.
|
Number |
setValue(Number newaz)
Sets the azimuth of the telescope.
|
getUncached, init, registerError, registerLauncherget, getCache, getCacheFormatted, setcreateParameter, delivers, exit, getFormatted, getName, getPreserveFile, getString, getString, overrideDefaultName, register, setName, toStringclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, 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, stringPropertiesinitreloadgetCache, getCacheFormattedpublic static final String KEY_TEMPERATURE
public static final String KEY_MIRRORNAME
private static final double DEFTEMPERATURE
private static final String DEFMIRRORNAME
private static final String DEFCOMMAND
private static final DecimalFormat df
public MirrorTemperature(Map prop)
TelescopeStatus event is registered, this parameter points to
the home focus of the telescope #KEY_FOCUS.public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractStatusRequestorpublic Number getValue()
TelescopeStatus event registered to this parameter.public String getFormatted()
getFormatted in interface ParametergetFormatted in class AbstractParameterpublic Object getForError(ErrorEvent ee)
TelescopeStatus. This method is probably not extremly useful,
normally a TelescopeStatus error will be registered to this
parameter and its value queried later.getForError in interface ErrorDependingParameterprotected boolean isStatusRequested(ErrorEvent ee)
TelescopeStatusisStatusRequested in class AbstractStatusRequestor