1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.sensor;
18
19 import java.util.Set;
20
21 /***
22 *
23 * @author Age Mooy
24 */
25 public interface SensorStatistics {
26
27 /***
28 * Returns the string that uniquely identifies one instance of SensorStatistics.
29 * @return the string that uniquely identifies one instance of SensorStatistics.
30 */
31 public String getId();
32
33 /***
34 * Returns a Set<String> of all labels associated with an instance of SensorStatistics.
35 * @return a Set<String> of all labels associated with an instance of SensorStatistics.
36 */
37 public Set getLabels();
38
39 /***
40 * Refresh the statistics from whatever original source they came from.
41 */
42 public void refresh();
43
44 /***
45 * Resets the statistics to their default values.
46 */
47 public void reset();
48
49 }