public interface ErrorDependingParameter extends Parameter
ErrorEvent instance has been registered to it. A possible application
may be linked to parameters that re passed to the SCS via status messages.
It appears useful to only pass error messages with the pipe flag on to
the error depending parameter.
To follow the same approach as in the TargetDependingParameter
interface, two possiblities of data retrieval are possible:
Either providing the error event directly on the #getFor
method, or registering it with registerError(stella.ErrorEvent) and
subsequentially calling Parameter.get(). Parameter.set(java.lang.Object) method seems unlikely. Parameter values change with
the receipt of an error event.NAMING_EXTENSION may be used for applications that must use the
parameter in its error related sense, i.e. if an application may
query a parameter not for its current setting, but for a setup of a special
error (which, of course, this application must know of). The use of this
extension is very unlikely, compared to the use of the naming extension in
the TargetDependingParameter.| Modifier and Type | Field and Description |
|---|---|
static String |
NAMING_EXTENSION
The naming extension to declare a target depending parameter.
|
CONFIG, KEY_CLASS| Modifier and Type | Method and Description |
|---|---|
Object |
getForError(ErrorEvent error)
Returns the parameter value using some sensors of the weather surveying
handed over.
|
void |
registerError(ErrorEvent error)
Registers a weather surveyor permanently to this parameter.
|
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, stringPropertiesinitstatic final String NAMING_EXTENSION
Object getForError(ErrorEvent error)
Parameter.get() link to identical sensors.void registerError(ErrorEvent error)
Parameter.get() method will refer to
this weather station.