Adding new policies for stub/skeleton generation - second benchmark
[iot2.git] / localconfig / iotpolicy / SpruceSensor / sprucesensor.pol
1 public interface MoistureSensor {
2
3         public void init();
4         public float getMoisture();
5         public long getTimestampOfLastReading();
6         public void setId(int id);
7         public int getId();
8         public void registerCallback(MoistureSensorCallback _callbackTo);
9
10         capability Initialize {
11                 description = "Initialize object";
12                 method = "init()";
13                 method = "registerCallback(MoistureSensorCallback _callbackTo)";
14         }
15
16         capability Moisture {
17                 description = "Handle moisture value";
18                 method = "getMoisture()";
19                 method = "getTimestampOfLastReading()";
20         }
21
22         capability SensorId {
23                 description = "Manage sensor Id";
24                 method = "setId(int id)";
25                 method = "getId()";
26         }
27 }
28
29