Adjusting files in ZigbeeTest; preparing things for 4th benchmark, i.e. generating...
[iot2.git] / localconfig / iotpolicy / EspAlarm / espalarm.pol
1 public interface Alarm {
2
3         public void init();
4         public void setZone(int _zone, boolean _onOff, int _onDurationSeconds);
5         public List<ZoneState> getZoneStates();
6         public int getNumberOfZones();
7         public boolean doesHaveZoneTimers();
8
9         capability Initialize {
10                 description = "Initialize object";
11                 method = "init()";
12         }
13
14         capability Zone {
15                 description = "Manage zones";
16                 method = "setZone(int _zone, boolean _onOff, int _onDurationSeconds)";
17                 method = "getZoneStates()";
18                 method = "getNumberOfZones()";
19                 method = "doesHaveZoneTimers()";
20         }
21
22         struct ZoneState {
23                 int zoneNumber;
24                 boolean onOffState;
25                 int duration;
26         }
27 }
28
29