prevent arraylist resize from affecting state matching
[smartthings-infrastructure.git] / GlobalVariables / GlobalVariablesEachApp.groovy
index 7d44e0c1efc5db8fba08c9fc6c8fe10c8774dc5c..ba78f9878f871119351c606ab7aa0d9d88446577 100644 (file)
@@ -1,18 +1,16 @@
-//Settings variable defined to settings on purpose
-def settings = "Settings"
 //Global variable for state[mode]
 def state = [home:[],away:[],night:[]]
 //Create a global logger object for methods
 def log = new Logger()
 //Create a global variable for Functions in Subscribe method
-def functionList = []
+def functionList = new ArrayList(20)
 //Create a global variable for Objects in Subscribe method
-def objectList = []
+def objectList = new ArrayList(20)
 //Create a global variable for Events in Subscribe method
-def eventList = []
-//Create a global list for function schedulers
-def timersFuncList = []
-//Create a global list for timer schedulers
-def timersList = []
-//Create a global list for events
-def evt = []
+def eventList = new ArrayList(20)
+//Create a global variable for settings
+def settings
+//Zip code
+def zipCode = 92617
+//atomicState variable
+def atomicState = [version: "1.01"]