@Field File extractedObjectsConstructorApp2 = new File("Extractor/App2/extractedObjectsConstructorApp2.groovy")
//Set this to true for global-state variable conflict
-@Field assignDifferentModes = false
+@Field assignDifferentModes = true
@Field chooseMode = 0
//Empty the files
if (App == "App1") {
extractedObjectsApp2.write("")
extractedObjectsConstructorApp2.write("")
if (assignDifferentModes)
- chooseMode = 1
+ chooseMode = 2
}
}*/
"$nameOfFunction"()
}
+/////////////////////////////////////////////////////////////////////
+////schedule(Date, nameOfFunction as String)
+def schedule(Date date, String nameOfFunction) {
+ "$nameOfFunction"()
+}
////schedule(time, nameOfFunction as Closure)
def schedule(String time, Closure nameOfFunction) {
/*def _inputTime = time.split(':')
package MusicPlayer
import Timer.SimulatedTimer
+//JPF's Verify API
+import gov.nasa.jpf.vm.Verify
public class MusicPlayer {
private String id
this.level = level
}
}
+ def playSoundAndTrack(String trackData, int duration, int trackNumber, int level) {
+ playTrackAndResume(trackData, duration)
+ if (level != this.level) {
+ this.level = level
+ }
+ if (trackNumber!= this.trackNumber) {
+ this.trackNumber = trackNumber
+ }
+ }
def playTrackAtVolume(String trackData, int level) {
playTrack(trackData)
if (level != this.level) {
}
}
def statesSince(String info, Date dateObj, LinkedHashMap map) {
- return presenceSensors[0].statesSince()
+ return musicPlayers[0].statesSince()
}
def playText(LinkedHashMap metaData) {
playText()