public class AltTelescope extends AbstractStatusRequestor implements Value, Reloadable
TelescopeStatus error event to retrieve a most accurate position of
the telescope. Note that there will still be some deviation from the true
position due to the following reasons:
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFALTHOME
The home position of the telescope.
|
private static String |
DEFCOMMAND
The default class name of the status command to send.
|
static String |
DEFNAME
The default name of this parameter.
|
private static DecimalFormat |
df
The formatter for the telescope altitude.
|
static String |
KEY_ALTHOME
The key pointing to the home position of the telescope.
|
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 |
|---|
AltTelescope(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 newalt)
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_ALTHOME
public static final String DEFNAME
private static final double DEFALTHOME
private static final String DEFCOMMAND
private static final DecimalFormat df
public AltTelescope(Map prop)
TelescopeStatus event is registered, this parameter points to
the home position of the telescope KEY_ALTHOME.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