public interface StatusRequesting extends ErrorDependingParameter
ErrorEvent, normally a status event, sent from the devices
and
that this value is linked to a changing parameter. An example is the alt/az
position of the telescope, which is sent in a
TelescopeStatus, but is changing as long as the
telescope is moving. To nevertheless get a most accurate value, this
parameter directly urges the registered CommandLaunching
instance to send a command to its server, which is then followed by an
ErrorEvent. This error-event is caught by the parameter serving
cluster and piped to this parameter as a response. Now, the value of
this parameter is updated and returned. To make this complicated schema a
little bit more applicible, mind the following:
Parameter.get() method will
introduce a certain latency, i.e. it may take some time until it
returns.getCache() can be used. This will always return fast.NAMING_EXTENSIONCONFIG, KEY_CLASS| Modifier and Type | Method and Description |
|---|---|
Object |
getCache()
Returns the cached parameter value.
|
String |
getCacheFormatted()
Returns the cache entry as a string, formatted e.g.
|
boolean |
registerLauncher(CommandLaunching launch)
Registers a command launching instance to this parameter.
|
getForError, registerErrordefaultBoolean, 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, stringPropertiesinitboolean registerLauncher(CommandLaunching launch)
CommandLaunching instances to its status requesting parameters.Object getCache()
String getCacheFormatted()