Committing changes in driver files for paper evaluation
[iot2.git] / benchmarks / drivers / Java / BlossomSprinkler / BlossomSprinkler.java
index f8100e157ab8efc7a0a9eb27f55a659c92a6f2bd..dc05c0d5c762932e59fdc7ee58adfde1c5a56f15 100644 (file)
@@ -437,11 +437,14 @@ public class BlossomSprinkler implements Sprinkler {
         }
     }
        
-       /*public static void main(String[] args) throws Exception {
+       /* TODO: Uncomment this part to do sprinkler test
+       public static void main(String[] args) throws Exception {
 
                System.out.println("Executing main function!");
-               IoTDeviceAddress iotDevAdd1 = new IoTDeviceAddress("192.168.0.129", 10009, 80, false, false);
-               IoTDeviceAddress iotDevAdd2 = new IoTDeviceAddress("192.168.0.84", 10010, 80, false, false);
+               //IoTDeviceAddress iotDevAdd1 = new IoTDeviceAddress("192.168.0.129", 10009, 80, false, false);
+               //IoTDeviceAddress iotDevAdd2 = new IoTDeviceAddress("192.168.0.84", 10010, 80, false, false);
+               IoTDeviceAddress iotDevAdd1 = new IoTDeviceAddress(args[0], 10009, 80, false, false);
+               IoTDeviceAddress iotDevAdd2 = new IoTDeviceAddress(args[1], 10010, 80, false, false);           
                Set<IoTDeviceAddress> setBlossom = new HashSet<IoTDeviceAddress>();
                Set<IoTDeviceAddress> setLocal = new HashSet<IoTDeviceAddress>();
                setBlossom.add(iotDevAdd1);
@@ -452,8 +455,7 @@ public class BlossomSprinkler implements Sprinkler {
                BlossomSprinkler bs = new BlossomSprinkler(channelID, iotsetBlossom, iotsetLocal);
                bs.init();
                System.out.println("Finished init()");
-               Thread.sleep(30000);
-               bs.setZone(0, true, 120);
+               bs.setZone(0, true, 60);
                System.out.println("Finished setZone!");
 
        }*/