stella.parameter
Class RemoteSensorStatistic
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractValue
stella.parameter.StatisticValue
stella.parameter.SensorStatistic
stella.parameter.RemoteSensorStatistic
- All Implemented Interfaces:
- Cloneable, EventListener, DataListener, ErrorDependingParameter, Parameter, Value, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, Reloadable, ResourceSupplying
- Direct Known Subclasses:
- RemoteSensorAverage, RemoteSensorMaximum
public abstract class RemoteSensorStatistic
- extends SensorStatistic
- implements Reloadable
This value registers to a sensor that is a 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.
|
Field Summary |
private MyRmiListener |
listen
The rmi-listener & reference watcher for binding to the sensor. |
|
Method Summary |
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. |
| Methods inherited from class stella.parameter.AbstractParameter |
createParameter, delivers, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, setName, toString |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
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, reload, removeProperty, setObject, setProperties, setProperty, stringProperties |
| Methods inherited from interface util.PropertySupplying |
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, stringProperties |
listen
private MyRmiListener listen
- The rmi-listener & reference watcher for binding to the sensor.
RemoteSensorStatistic
protected RemoteSensorStatistic(Map info)
- Constructs a new sensor statistic. Sensor data is gathered at
every call to
SensorStatistic.dataAvailable(stella.DataEvent)
rescanned
public 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.
- Specified by:
rescanned in interface Reloadable- Overrides:
rescanned in class AbstractParameter
init
public void init()
- Initializes this parameter. This means binding to the remote reference.
- Specified by:
init in interface Initializable- Overrides:
init in class AbstractParameter
exit
public void exit()
- For orderly shutdown, de-register from the binding reference. Simply
call the exit method of the
listen helper object.
- Specified by:
exit in interface ExitCleaning- Overrides:
exit in class AbstractParameter