projects
/
iot2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exchanging cameras between benchmarks; updating database
[iot2.git]
/
benchmarks
/
Java
/
IrrigationController
/
IrrigationController.java
diff --git
a/benchmarks/Java/IrrigationController/IrrigationController.java
b/benchmarks/Java/IrrigationController/IrrigationController.java
index c06646ff0f87a9b608fcb8b894ab4da10f0786c9..4bcec6248df9c38bfd1364bf8534a5b6976ba414 100644
(file)
--- a/
benchmarks/Java/IrrigationController/IrrigationController.java
+++ b/
benchmarks/Java/IrrigationController/IrrigationController.java
@@
-257,18
+257,18
@@
public class IrrigationController extends UnicastRemoteObject implements Weather
}
System.out.println("DEBUG: Waiting for phone to send weather information");
}
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
// TODO: Use a phone input interface later
-
//
inchesPerWeek = 20.00;
-
//
weatherZipCode = 92612;
-
//
daysToWaterOn = 255;
-
//
inchesPerMinute.add(1.50);
+ inchesPerWeek = 20.00;
+ weatherZipCode = 92612;
+ daysToWaterOn = 255;
+ inchesPerMinute.add(1.50);
System.out.println("DEBUG: inchesPerWeek: " + inchesPerWeek);
System.out.println("DEBUG: weatherZipCode: " + weatherZipCode);
System.out.println("DEBUG: inchesPerWeek: " + inchesPerWeek);
System.out.println("DEBUG: weatherZipCode: " + weatherZipCode);
@@
-330,6
+330,8
@@
public class IrrigationController extends UnicastRemoteObject implements Weather
// init the sprinkler controller, do it here since it only needs to be done once per controller
try {
spr.init();
// init the sprinkler controller, do it here since it only needs to be done once per controller
try {
spr.init();
+ // Wait until sprinkler is active
+ Thread.sleep(30000);
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e) {
e.printStackTrace();
}