77aec71547e62db4a099b963f6992145d4dd9926
[jpf-core.git] / examples / Empty.groovy
1 class Empty {
2
3         // This function runs when the SmartApp is installed
4         def installed() {
5                 // This is a standard debug statement in Groovy
6                 //log.debug "Installed with settings: ${settings}"
7                 //int x = 5;
8                 //int y = 6;
9                 //int result = x + y;
10                 //return result;
11                 println "installed() is called!"
12                 //initialize()
13         }
14
15         // This function is where you initialize callbacks for event listeners
16         def initialize() {
17                 // The subscribe function takes a input, a state, and a callback method
18                 //subscribe(contact, "contact.open", openHandler)
19                 //subscribe(contact, "contact.closed", closedHandler)
20                 println "initialize() is called!"
21         }
22
23         static void main(String[] args) {               
24
25                 Empty emp = new Empty();
26                 //int result = emp.installed();
27                 //println result;
28                 emp.installed()
29                 int x = 5;
30                 int y = 6;
31                 int result = x + y;
32                 println result
33                 println "End of call!"
34         }       
35 }