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