Package io.openems.edge.controller.evcs
Class ChargingLowerThanTargetHandler
- java.lang.Object
-
- io.openems.edge.controller.evcs.ChargingLowerThanTargetHandler
-
public class ChargingLowerThanTargetHandler extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ChargingLowerThanTargetHandler(EvcsController parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Integer
getMaximumChargePower()
Maximum charge power of the EV depending on the lastisChargingLowerThanTarget(ManagedEvcs)
try's.protected boolean
isChargingLowerThanTarget(ManagedEvcs evcs)
Check if the difference between the requested charging target and the real charging power is higher than the CHARGING_TARGET_MAX_DIFFERENCE.protected boolean
isLower(ManagedEvcs evcs)
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.
-
-
-
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 lastisChargingLowerThanTarget(ManagedEvcs)
try's.- Returns:
- The maximum charge power of the EV.
-
-