Infrastructure compatible with 2 types of switches.(Normal switches and otherVsGeneri...
[smartthings-infrastructure.git] / MotionSensor / MotionSensors.groovy
index c799b0e77766697fd893a67c8bebcdfe314452e5..5c03ebf677c2cf90700d63c2d859e8129b5966a0 100644 (file)
@@ -2,6 +2,9 @@
 package MotionSensor
 import Timer.SimulatedTimer
 
+//JPF's Verify API
+import gov.nasa.jpf.vm.Verify
+
 public class MotionSensors {
        private int deviceNumbers
        private List motionSensors
@@ -80,6 +83,10 @@ public class MotionSensors {
                return motionSensors[0].statesSince()
        }
 
+       def eventsSince(Date dateObj) {
+               return motionSensors[0].statesSince()
+       }
+
        def getAt(int ix) {
                motionSensors[ix]
        }