Class PhaseDef
java.lang.Object
io.openems.edge.controller.io.heatingelement.PhaseDef
PhaseDef represents one Phase of the Heating Element.
- Keeps info about whether the phase is switched ON or OFF
- Calculates totalTime and totalEnergy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the total switch-on time in seconds since last reset on midnight.protected void
Switch the output OFF.protected void
switchOn()
Switch the output ON.
-
Constructor Details
-
PhaseDef
-
-
Method Details
-
switchOn
Switch the output ON.- Throws:
OpenemsError.OpenemsNamedException
- on error.IllegalArgumentException
- on error.
-
switchOff
Switch the output OFF.- Throws:
OpenemsError.OpenemsNamedException
- on error.IllegalArgumentException
- on error.
-
getTotalDuration
Gets the total switch-on time in seconds since last reset on midnight.- Returns:
- the total elapsed time
-