X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=blobdiff_plain;f=Location%2FLocationVar.groovy;h=d006c4e70cdce141529b8038f1c1e838134f2346;hp=a87abe9834197ab321f5b935e41416be893b72b9;hb=6da0a8cedec52b542e0d5046632ae1c166e260cf;hpb=de35dfa319418baf7ba4bc2eeb4dbfc0fd20230a diff --git a/Location/LocationVar.groovy b/Location/LocationVar.groovy index a87abe9..d006c4e 100644 --- a/Location/LocationVar.groovy +++ b/Location/LocationVar.groovy @@ -5,15 +5,18 @@ class LocationVar { private int contactBookEnabled private def modes private def timeZone + private def hubs private String mode private String name private List contacts private List phoneNumbers + private String temperatureScale def sendEvent - + private Phrase helloHome LocationVar(Closure sendEvent) { + this.hubs = [[id:0, localIP:"128.195.204.105"]] this.modes = [[name: "home"],[name: "away"],[name: "night"]] this.mode = "home" this.helloHome = new Phrase() @@ -23,6 +26,7 @@ class LocationVar { this.sendEvent = sendEvent this.timeZone = TimeZone.getTimeZone("America/New_York") this.name = "hub0" + this.temperatureScale = "F" } //By Model Checker