From: amiraj Date: Wed, 22 Jan 2020 19:57:28 +0000 (-0800) Subject: A minor change in classes X-Git-Url: http://demsky.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=commitdiff_plain;h=5c18eab809cec914a04f4a57154a34e57c27e031 A minor change in classes --- diff --git a/Location/LocationVar.groovy b/Location/LocationVar.groovy index 9257012..986cf78 100755 --- a/Location/LocationVar.groovy +++ b/Location/LocationVar.groovy @@ -2,6 +2,9 @@ package Location import SmartThing.SmartThing +//Importing mutable integer class +import MutableInteger.MutableInteger + public class LocationVar extends SmartThing { // Features with numberical values MutableInteger contactBookEnabled = new MutableInteger() diff --git a/StepSensor/StepSensor.groovy b/StepSensor/StepSensor.groovy index 7dcdb83..538fca5 100644 --- a/StepSensor/StepSensor.groovy +++ b/StepSensor/StepSensor.groovy @@ -2,6 +2,9 @@ package StepSensor import SmartThing.SmartThing +//Importing mutable integer class +import MutableInteger.MutableInteger + public class StepSensor extends SmartThing { // id, label, and display name of the device StringBuilder id = new StringBuilder() diff --git a/StepSensor/StepSensors.groovy b/StepSensor/StepSensors.groovy index 3986a69..bbe8fd8 100644 --- a/StepSensor/StepSensors.groovy +++ b/StepSensor/StepSensors.groovy @@ -2,6 +2,9 @@ package StepSensor import SmartThing.SmartThings +//Importing mutable integer class +import MutableInteger.MutableInteger + public class StepSensors extends SmartThings { List stepSensors = new ArrayList() diff --git a/SwitchLevel/SwitchLevel.groovy b/SwitchLevel/SwitchLevel.groovy index 5d3d5c1..364a886 100644 --- a/SwitchLevel/SwitchLevel.groovy +++ b/SwitchLevel/SwitchLevel.groovy @@ -2,6 +2,9 @@ package SwitchLevel import SmartThing.SmartThing +//Importing mutable integer class +import MutableInteger.MutableInteger + public class SwitchLevel extends SmartThing { // id, label, and display name of the device StringBuilder id = new StringBuilder() diff --git a/SwitchLevel/SwitchLevels.groovy b/SwitchLevel/SwitchLevels.groovy index 8e06b66..c48e1cf 100644 --- a/SwitchLevel/SwitchLevels.groovy +++ b/SwitchLevel/SwitchLevels.groovy @@ -2,6 +2,9 @@ package SwitchLevel import SmartThing.SmartThings +//Importing mutable integer class +import MutableInteger.MutableInteger + public class SwitchLevels extends SmartThings { List switchLevels = new ArrayList() diff --git a/Thermostat/Thermostat.groovy b/Thermostat/Thermostat.groovy index 40eea8d..4fa2c78 100644 --- a/Thermostat/Thermostat.groovy +++ b/Thermostat/Thermostat.groovy @@ -2,6 +2,9 @@ package Thermostat import SmartThing.SmartThing +//Importing mutable integer class +import MutableInteger.MutableInteger + class Thermostat extends SmartThing { // id, label, and display name of the device StringBuilder id = new StringBuilder() diff --git a/Thermostat/Thermostats.groovy b/Thermostat/Thermostats.groovy index 7d7bc27..693ba93 100644 --- a/Thermostat/Thermostats.groovy +++ b/Thermostat/Thermostats.groovy @@ -2,6 +2,9 @@ package Thermostat import SmartThing.SmartThings +//Importing mutable integer class +import MutableInteger.MutableInteger + class Thermostats extends SmartThings { List thermostats = new ArrayList()