Adjusting files in ZigbeeTest; preparing things for 4th benchmark, i.e. generating...
[iot2.git] / localconfig / iotpolicy / SmartthingsSensor / smartthingssensor.pol
1 public interface SmartthingsSensor {
2
3         public void init();
4         public int getValue();
5         public boolean isActiveValue();
6         public long getTimestampOfLastReading();
7         public void setId(int id);
8         public int getId();
9         public void registerCallback(SmartthingsSensorCallback _callbackTo);
10
11         capability Initialize {
12                 description = "Initialize object";
13                 method = "init()";
14                 method = "registerCallback(SmartthingsSensorCallback _callbackTo)";
15         }
16
17         capability Value {
18                 description = "Handle value";
19                 method = "getValue()";
20                 method = "isActiveValue()";
21                 method = "getTimestampOfLastReading()";
22         }
23
24         capability SensorId {
25                 description = "Manage sensor Id";
26                 method = "setId(int id)";
27                 method = "getId()";
28         }
29 }
30
31