Class EnergyValuesHandler

java.lang.Object
io.openems.edge.core.sum.EnergyValuesHandler

public class EnergyValuesHandler extends Object
This Handler class makes sure that Energy values are steadily rising.
  • Constructor Details

    • EnergyValuesHandler

      public EnergyValuesHandler(SumImpl parent)
  • Method Details

    • activate

      public void activate()
      Activate the EnergyValuesHandler.

      Call this method in the @Activate method.

    • deactivate

      public void deactivate()
      Deactivate the EnergyValuesHandler.

      Call this method in the @Deactivate method.

    • setValue

      public Long setValue(Sum.ChannelId channelId, Long value)
      Sets the value of the Channel if it is greater-or-equals the lastValue.
      Parameters:
      channelId - the Channel-Id
      value - the energy value
      Returns:
      the value that was set; might be null