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