5207e4fab59c02d669443119ce223bb2dbfc4b11
[smartthings-infrastructure.git] / GlobalVariables / GlobalVariables.groovy
1 //Create a global variable for send event
2 @Field def sendEvent = {eventDataMap -> eventHandler(eventDataMap)}
3 //create a location object to change the variable inside the class
4 @Field def location = new LocationVar()
5 //Settings variable defined to settings on purpose
6 @Field def settings = "Settings"
7 //Global variable for state[mode]
8 @Field def state = [home:[],away:[],night:[]]
9 //Global object for touch
10 @Field def app = new Touched(sendEvent, 0)
11 //Create a global logger object for methods
12 @Field def log = new Logger()
13 //Create a global variable for Functions in Subscribe method
14 @Field def functionList = []
15 //Create a global variable for Objects in Subscribe method
16 @Field def objectList = []
17 //Create a global variable for Events in Subscribe method
18 @Field def eventList = []
19 //Create a global list for function schedulers
20 @Field def timersFuncList = []
21 //Create a global list for timer schedulers
22 @Field def timersList = []
23 //Create a global list for events
24 @Field def evt = []
25