protected class SensorRepository.Averager extends TimerTask
| Modifier and Type | Field and Description |
|---|---|
private int |
round
Counting the number of runs of the averager.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Averager()
Constructs a new averager task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
This method reads out all collected data from all sensors monitored
by the enclosing repository.
|
private void |
sendData(Object receiver,
int average)
Notifies a data collecting instance using the last averaged
data events.
|
cancel, scheduledExecutionTimeprotected Averager()
public void run()
SensorRepository.average
map. The data events are averaged and the list stored in the
SensorRepository.average map is cleared.private void sendData(Object receiver, int average) throws RemoteException
RemoteException