Class ChargingLowerThanTargetHandler


  • public class ChargingLowerThanTargetHandler
    extends java.lang.Object
    • Constructor Detail

      • ChargingLowerThanTargetHandler

        public ChargingLowerThanTargetHandler​(EvcsController parent)
    • Method Detail

      • 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 java.lang.Integer getMaximumChargePower()
        Maximum charge power of the EV depending on the last isChargingLowerThanTarget(ManagedEvcs) try's.
        Returns:
        The maximum charge power of the EV.