Adding doorlock to the fourth benchmark
[iot2.git] / localconfig / iotpolicy / SmartthingsActuator / smartthingsactuator.pol
1 public interface SmartthingsActuator {
2
3         public void init();
4         public boolean actuate(int value);
5         public void requestStatus();
6         public int getStatus();
7         public boolean isActiveStatus();
8         public long getTimestampOfLastReading();
9         public void setId(int id);
10         public int getId();
11         public void registerCallback(SmartthingsActuatorCallback _callbackTo);
12
13         capability Initialize {
14                 description = "Initialize object";
15                 method = "init()";
16                 method = "registerCallback(SmartthingsActuatorCallback _callbackTo)";
17         }
18
19         capability Actuate {
20                 description = "Actuate device";
21                 method = "actuate(int value)";
22         }
23
24         capability Status {
25                 description = "Handle status";
26                 method = "requestStatus()";
27                 method = "getStatus()";
28                 method = "isActiveStatus()";
29                 method = "getTimestampOfLastReading()";
30         }
31
32         capability ActuatorId {
33                 description = "Manage actuator Id";
34                 method = "setId(int id)";
35                 method = "getId()";
36         }
37 }
38
39