Re-checking in controller Java files after adjustments for paper evaluation
[iot2.git] / benchmarks / Java / IrrigationController / IrrigationController.java
index 4bcec6248df9c38bfd1364bf8534a5b6976ba414..a30bffd1ae689b2e183694a36737aa4cb3de11fd 100644 (file)
@@ -257,18 +257,18 @@ public class IrrigationController extends UnicastRemoteObject implements Weather
                }
 
                System.out.println("DEBUG: Waiting for phone to send weather information");
-               //while (waitingForInterface.get()) {
-               //      try {
-               //              Thread.sleep(1000);
-               //      } catch (Exception e) {
-               //              e.printStackTrace();
-               //      }
-               //}
+               while (waitingForInterface.get()) {
+                       try {
+                               Thread.sleep(1000);
+                       } catch (Exception e) {
+                               e.printStackTrace();
+                       }
+               }
                // TODO: Use a phone input interface later
-               inchesPerWeek = 20.00;
+               /*inchesPerWeek = 20.00;
                weatherZipCode = 92612;
                daysToWaterOn = 255;
-               inchesPerMinute.add(1.50);
+               inchesPerMinute.add(1.50);*/
 
                System.out.println("DEBUG: inchesPerWeek: " + inchesPerWeek);
                System.out.println("DEBUG: weatherZipCode: " + weatherZipCode);