Class PhaseDef


  • public class PhaseDef
    extends java.lang.Object
    PhaseDef represents one Phase of the Heating Element.
    • Keeps info about whether the phase is switched ON or OFF
    • Calculates totalTime and totalEnergy
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.Duration getTotalDuration()
      Gets the total switch-on time in seconds since last reset on midnight.
      protected void switchOff()
      Switch the output OFF.
      protected void switchOn()
      Switch the output ON.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTotalDuration

        public java.time.Duration getTotalDuration()
        Gets the total switch-on time in seconds since last reset on midnight.
        Returns:
        the total elapsed time