public interface DataCollecting
SensorRepository. After
collecting some sensor data, this class averages over the data collected
and calls its registered data collectors processData(java.util.Map<java.lang.String, stella.DataEvent>, boolean) method.
The data collectors are responsible for further processing the data, e.g.
they can write it into a data-base or display it graphically.| Modifier and Type | Method and Description |
|---|---|
long |
getInterval()
Returns the intervall in which the listener wants to be notified.
|
void |
processData(Map<String,DataEvent> sensors,
boolean weather)
This method is called after the
ShortAverageRepository
collected
some data. |
void processData(Map<String,DataEvent> sensors, boolean weather)
ShortAverageRepository
collected
some data. In the argument, all sensors that have at least once in the
liftime of the repository delivered data are mapped against the
average DataEvent of all data events sent during the
averaging period. Note that it is in principle possible that the
sensor mapped has not produced a single data event in the last
averaging period and therfore is mapped to null.ShortAverageRepository is
calling this method depends on the multiplyer to the repositorys base
frequence delivered by the getInterval() method.sensors - Mapping sensor names to data events.weather - True if current weather is good.long getInterval()