Class ChargingLowerThanTargetHandler

java.lang.Object
io.openems.edge.controller.evcs.ChargingLowerThanTargetHandler

public class ChargingLowerThanTargetHandler extends Object
  • Constructor Details

    • ChargingLowerThanTargetHandler

      public ChargingLowerThanTargetHandler(Clock clock)
  • Method Details

    • isLower

      protected boolean isLower(ManagedEvcs evcs) throws InvalidValueException
      Check if the difference between the requested charging target and the real charging power is higher than the CHARGING_TARGET_MAX_DIFFERENCE for at least MAXIMUM_OUT_OF_RANGE_TRIES.
      Parameters:
      evcs - EVCS
      Returns:
      true if the difference is too high
      Throws:
      InvalidValueException - invalidValueException
    • isChargingLowerThanTarget

      protected boolean isChargingLowerThanTarget(ManagedEvcs evcs) throws InvalidValueException
      Check if the difference between the requested charging target and the real charging power is higher than the CHARGING_TARGET_MAX_DIFFERENCE. If it returns true, it is setting the maximumPower.
      Parameters:
      evcs - EVCS
      Returns:
      true if the difference is too high
      Throws:
      InvalidValueException - invalidValueException
    • getMaximumChargePower

      protected Integer getMaximumChargePower()
      Maximum charge power of the EV depending on the last isChargingLowerThanTarget(ManagedEvcs) try's.
      Returns:
      The maximum charge power of the EV.