public abstract class RemoteSensorStatistic extends SensorStatistic implements Reloadable
RmiDataCaster.
DataEvents received must be RawDataEvents. From these,
the physical value is added to the underlying StatisticValue.
Concrete subclasses may return average or min/max of accumulated data.
Note that this class can only work within the MasterMind or
CCDMaster, the latter only if the averageing thread is reset by
an error-event generated by the CCDMaster.
StatisticValue.Average, StatisticValue.Maximum, StatisticValue.Median, StatisticValue.MinimumPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private MyRmiListener |
listen
The rmi-listener & reference watcher for binding to the sensor.
|
KEY_ERROR, KEY_THRESHOLDKEY_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_MAPSEPARATORNAMING_EXTENSIONCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Modifier | Constructor and Description |
|---|---|
protected |
RemoteSensorStatistic(Map<String,String> info)
Constructs a new sensor statistic.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exit()
For orderly shutdown, de-register from the binding reference.
|
void |
init()
Initializes this parameter.
|
double |
rescanned(String key,
String old,
String newval)
If the listener reference has changed, we reinit the binding or
pass the changed key to the listener properties.
|
dataAvailablegetAverage, getForError, getMaximum, getMedian, getMinimum, getSigma, isValid, registerError, setValueget, setcreateParameter, delivers, getFormatted, 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, waitreloaddefaultBoolean, 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, stringPropertiesprivate MyRmiListener listen
protected RemoteSensorStatistic(Map<String,String> info)
SensorStatistic.dataAvailable(stella.DataEvent)public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic void init()
throws InitException
init in interface Initializableinit in class AbstractParameterInitExceptionpublic void exit()
listen helper object.exit in interface ExitCleaningexit in class AbstractParameter