Changing Verify API call scheme for device handlers.
[smartthings-infrastructure.git] / SpeechSynthesis / SpeechSynthesises.groovy
index 2a125987d1806787f72821694a14bda378ab40fd..50417cc8615a278a5bb8fce4f87ce69122c29b9b 100644 (file)
@@ -2,9 +2,6 @@
 package SpeechSynthesis
 import Timer.SimulatedTimer
 
-//JPF's Verify API
-import gov.nasa.jpf.vm.Verify
-
 public class SpeechSynthesises {
        private int deviceNumbers
        private List speechSynthesises
@@ -17,14 +14,16 @@ public class SpeechSynthesises {
        private int level = 50
 
                
-       SpeechSynthesises(Closure sendEvent, int deviceNumbers) {
+       SpeechSynthesises(Closure sendEvent, int deviceNumbers, boolean init) {
                this.sendEvent = sendEvent              
                this.deviceNumbers = deviceNumbers
                this.speechSynthesises = []
 
-               //def init = Verify.getIntFromList(30, 50, 70)
-               //this.level = init
-
+               if (init) {
+                       this.level = 50
+               } else {
+                       this.level = 60
+               }
                speechSynthesises.add(new SpeechSynthesis(id, label, displayName, this.level))
        }