Beispiel #1
0
 @Override
 public String toString() {
   return "Pump(System:"
       + (systemActive ? "On" : "Off")
       + ",Pump:"
       + (pumpRunning ? "On" : "Off")
       + ") "
       + env.toString();
 }
Beispiel #2
0
 public void timeShift() {
   if (pumpRunning) env.lowerWaterLevel();
   if (systemActive) processEnvironment();
 }
Beispiel #3
0
 boolean isMethaneAlarm() {
   return env.isMethaneLevelCritical();
 }
Beispiel #4
0
 boolean isLowWaterLevel() {
   return !env.isLowWaterSensorDry();
 }