Some minor changes!
[smartthings-infrastructure.git] / Switch / Switches.groovy
index a0e191cf4f61e4b92c33aafcf3670b273aa8946d..152096db303471cfc66dfece1098095c9ea6e478 100644 (file)
@@ -2,6 +2,10 @@
 package Switch
 import Timer.SimulatedTimer
 
+//JPF's Verify API
+import gov.nasa.jpf.vm.Verify
+
+
 public class Switches {
        int deviceNumbers       
        List switches
@@ -47,6 +51,9 @@ public class Switches {
        def each(Closure Input) {
                switches.each(Input)
        }
+       def eachWithIndex(Closure Input) {
+               switches.eachWithIndex(Input)
+       }
        def find(Closure Input) {
                switches.find(Input)
        }