Package io.openems.edge.controller.evcs
Class ChargingLowerThanTargetHandler
java.lang.Object
io.openems.edge.controller.evcs.ChargingLowerThanTargetHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Integer
Maximum charge power of the EV depending on the lastisChargingLowerThanTarget(ManagedEvcs)
try's.protected boolean
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 Details
-
ChargingLowerThanTargetHandler
-
-
Method Details
-
isLower
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
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
Maximum charge power of the EV depending on the lastisChargingLowerThanTarget(ManagedEvcs)
try's.- Returns:
- The maximum charge power of the EV.
-