package SmokeDetector
import Timer.SimulatedTimer
+//JPF's Verify API
+import gov.nasa.jpf.vm.Verify
+
public class SmokeDetectors {
private int deviceNumbers
private List smokeDetectors
this.deviceNumbers = deviceNumbers
this.smokeDetectors = []
+ def init = Verify.getInt(0,2)
+ if (init == 0) {
+ this.currentSmokeValue = "clear"
+ this.smokeLatestValue = "clear"
+ } else if (init == 1) {
+ this.currentSmokeValue = "detected"
+ this.smokeLatestValue = "detected"
+ } else {
+ this.currentSmokeValue = "tested"
+ this.smokeLatestValue = "tested"
+ }
smokeDetectors.add(new SmokeDetector(id, label, displayName, this.currentSmokeValue, this.smokeLatestValue))
}