package ColorControl
import Timer.SimulatedTimer
+//JPF's Verify API
+import gov.nasa.jpf.vm.Verify
public class ColorControls {
private int deviceNumbers
this.sendEvent = sendEvent
this.deviceNumbers = deviceNumbers
this.colorControls = []
+
+ def initHue = Verify.getIntFromList(30, 50, 70)
+ this.hue = initHue
+ def initSat = Verify.getIntFromList(40, 50, 60)
+ this.saturation = initSat
+ def init = Verify.getInt(0,2)
+ if (init == 0) {
+ this.color = "red"
+ } else if (init == 1) {
+ this.color = "green"
+ } else {
+ this.color = "blue"
+ }
colorControls.add(new ColorControl(id, label, displayName, this.color, this.hue, this.saturation))
}