Class ChargeStateHandler

java.lang.Object
io.openems.edge.evcs.api.ChargeStateHandler

public class ChargeStateHandler extends Object
Set the ChargeState from increasing and reducing to charging after minimum time until the charge limit is taken.
  • Constructor Details

    • ChargeStateHandler

      public ChargeStateHandler(ManagedEvcs parent)
  • Method Details

    • applyNewChargeState

      public boolean applyNewChargeState(ChargeState reqChargeState)
      Apply a new ChargeState.

      Set the ChargeState, if there is no pause active (for increasing and reducing). The Pause will be ignored and reset, if the given ChargeState is changing from INCREASING to REDUCING.

      Parameters:
      reqChargeState - ChargeState
      Returns:
      true when the requiredChargeState is taken
    • getChargeState

      public ChargeState getChargeState()
      Get ChargeState.
      Returns:
      current ChargeState