//By Model Checker
def setValue(LinkedHashMap eventDataMap) {
if (eventDataMap["value"] != sleepSensors[0].sleeping) {
+ this.sleeping = eventDataMap["value"]
sleepSensors[0].setValue(eventDataMap["value"])
- this.sleeping = sleepSensors[0].sleeping
sendEvent(eventDataMap)
}
}
def find(Closure Input) {
sleepSensors.find(Input)
}
+ def sort(Closure Input) {
+ sleepSensors.sort(Input)
+ }
def collect(Closure Input) {
sleepSensors.collect(Input)
}