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