package DoorControl
import Timer.SimulatedTimer
-//JPF's Verify API
-import gov.nasa.jpf.vm.Verify
-
public class DoorControls {
int deviceNumbers
List doorControls
private String doorState = "closed"
private String doorLatestValue = "closed"
- DoorControls(Closure sendEvent, int deviceNumbers) {
+ DoorControls(Closure sendEvent, int deviceNumbers, boolean init) {
this.sendEvent = sendEvent
this.timers = new SimulatedTimer()
this.deviceNumbers = deviceNumbers
this.doorControls = []
- /*def init = Verify.getBoolean()
if (init) {
this.doorState = "closed"
this.doorLatestValue = "closed"
} else {
this.doorState = "open"
this.doorLatestValue = "open"
- }*/
+ }
doorControls.add(new DoorControl(sendEvent, id, label, displayName, this.doorState, this.doorLatestValue))
}