X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Runner.py;h=81efa7a0c02eaf42b82d09542635651ba4940dfe;hb=55f57d1619271ede7bbd5c83e6218df6772afc89;hp=e5700dfa327527e6a9e53e7c3f1f8b2c47a4f951;hpb=e9196e0f9b6d29e4f5d9fbe51e15b5a6e7fe00b7;p=smartthings-infrastructure.git diff --git a/Runner.py b/Runner.py index e5700df..81efa7a 100644 --- a/Runner.py +++ b/Runner.py @@ -15,6 +15,7 @@ GlobalVariablesEachApp = open("GlobalVariables/"+"GlobalVariablesEachApp.groovy" setLocationMode = open("Methods/"+"setLocationMode.groovy", "r") subscribe = open("Methods/"+"subscribe.groovy", "r") runIn = open("Methods/"+"runIn.groovy", "r") +runDaily = open("Methods/"+"runDaily.groovy", "r") unschedule = open("Methods/"+"unschedule.groovy", "r") sendNotificationToContacts = open("Methods/"+"sendNotificationToContacts.groovy", "r") sendSms = open("Methods/"+"sendSms.groovy", "r") @@ -135,10 +136,14 @@ Out.write("@Field def init = Verify.getBoolean()\n\n") for line in GlobalVariablesBothApps: Out.write(line) Out.write("\n") +Out.write("//clear init flag now we are done with it\n") +Out.write("init = false\n") Out.write("//Application #1\n") Out.write("class App1 {\n") Out.write("\tdef reference\n") Out.write("\tdef location\n") +Out.write("\t// A local variable added for conflict detection tool\n") +Out.write("\tdef location_mode\n") Out.write("\tdef app\n") Out.write("\n") Out.write("\t//Extracted objects for App1\n") @@ -167,6 +172,8 @@ for line in subscribe: Out.write("\t"+line) for line in runIn: Out.write("\t"+line) +for line in runDaily: + Out.write("\t"+line) for line in unschedule: Out.write("\t"+line) for line in sendNotificationToContacts: @@ -218,6 +225,7 @@ GlobalVariablesEachApp = open("GlobalVariables/"+"GlobalVariablesEachApp.groovy" setLocationMode = open("Methods/"+"setLocationMode.groovy", "r") subscribe = open("Methods/"+"subscribe.groovy", "r") runIn = open("Methods/"+"runIn.groovy", "r") +runDaily = open("Methods/"+"runDaily.groovy", "r") unschedule = open("Methods/"+"unschedule.groovy", "r") sendNotificationToContacts = open("Methods/"+"sendNotificationToContacts.groovy", "r") sendSms = open("Methods/"+"sendSms.groovy", "r") @@ -245,6 +253,8 @@ Out.write("//Application #2\n") Out.write("class App2 {\n") Out.write("\tdef reference\n") Out.write("\tdef location\n") +Out.write("\t// A local variable added for conflict detection tool\n") +Out.write("\tdef location_mode\n") Out.write("\tdef app\n") Out.write("\n") Out.write("\t//Extracted objects for App2\n") @@ -273,6 +283,8 @@ for line in subscribe: Out.write("\t"+line) for line in runIn: Out.write("\t"+line) +for line in runDaily: + Out.write("\t"+line) for line in unschedule: Out.write("\t"+line) for line in sendNotificationToContacts: