|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataCollecting
Data collectors are only used by a SensorRepository. After
collecting some sensor datas, this class averages over the data collected
and calls its registered data collectors processData(java.util.Map 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.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||