Class StatusDefinition
java.lang.Object
io.openems.edge.controller.io.heatpump.sgready.StatusDefinition
State Definition.
Stores information about the time, it was switched on and provides an method to set this state.
-
Constructor Summary
ConstructorsConstructorDescriptionStatusDefinition
(ControllerIoHeatPumpSgReadyImpl parent, Status status, ControllerIoHeatPumpSgReady.ChannelId activeTimeChannelId) -
Method Summary
-
Constructor Details
-
StatusDefinition
public StatusDefinition(ControllerIoHeatPumpSgReadyImpl parent, Status status, ControllerIoHeatPumpSgReady.ChannelId activeTimeChannelId)
-
-
Method Details
-
switchOn
Switch on the state/it's referring relays.Forward its state to the parent changeState method, to set the corresponding relay outputs and the present state, if the state is not already active.
- Throws:
OpenemsError.OpenemsNamedException
- on errorIllegalArgumentException
- on error
-
updateActiveTime
protected void updateActiveTime()Updates the time channel depending if the state is active or not. -
isActive
protected boolean isActive()Returns if this state is the active state.- Returns:
- Is this state active.
-