1 public interface Sprinkler {
4 public void setZone(int _zone, boolean _onOff, int _onDurationSeconds);
5 public List<ZoneState> getZoneStates();
6 public int getNumberOfZones();
7 public boolean doesHaveZoneTimers();
9 capability Initialize {
10 description = "Initialize object";
15 description = "Manage zones";
16 method = "setZone(int _zone, boolean _onOff, int _onDurationSeconds)";
17 method = "getZoneStates()";
18 method = "getNumberOfZones()";
19 method = "doesHaveZoneTimers()";