Adding some notes about Java struct issue that can only be declared as static variable
authorrtrimana <rtrimana@uci.edu>
Fri, 2 Mar 2018 18:49:20 +0000 (10:49 -0800)
committerrtrimana <rtrimana@uci.edu>
Fri, 2 Mar 2018 18:49:20 +0000 (10:49 -0800)
benchmarks/drivers/Java/BlossomSprinkler/BlossomSprinkler.java

index 209b2fe..42145a1 100644 (file)
@@ -40,6 +40,9 @@ public class BlossomSprinkler implements Sprinkler {
     **  Constants
     *******************************************************************************************************************************************/
     //public static final int NUMBER_OF_ZONES = 12;
+    // TODO: We stick to 1 zone for now
+    // Unfortunately Java has a problem of creating struct that it can only declare it as public static.
+    // So having more than 1 zone is not possible with a struct of static variables.
        public static final int NUMBER_OF_ZONES = 1;
 
     @config IoTSet<IoTDeviceAddress> blossomSprAddressSet;
@@ -200,7 +203,6 @@ public class BlossomSprinkler implements Sprinkler {
     private void workerMethod() {
                System.out.println("Get into worker!");
                while (didEnd.get() == false) {
-                       //System.out.println("While not end");
             try {
                 zoneStateMutex.acquire();
                 for (ZoneState z : zoneStates) {