Package io.openems.edge.core.sum
Class EnergyValuesHandler
java.lang.Object
io.openems.edge.core.sum.EnergyValuesHandler
This Handler class makes sure that Energy values are steadily rising.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activate theEnergyValuesHandler
.void
Deactivate theEnergyValuesHandler
.setValue
(Sum.ChannelId channelId, Long value) Sets the value of the Channel if it is greater-or-equals the lastValue.
-
Constructor Details
-
EnergyValuesHandler
-
-
Method Details
-
activate
public void activate()Activate theEnergyValuesHandler
.Call this method in the @Activate method.
-
deactivate
public void deactivate()Deactivate theEnergyValuesHandler
.Call this method in the @Deactivate method.
-
setValue
Sets the value of the Channel if it is greater-or-equals the lastValue.- Parameters:
channelId
- the Channel-Idvalue
- the energy value- Returns:
- the value that was set; might be null
-