Class ChargeMaxCurrentHandler
- java.lang.Object
-
- io.openems.edge.battery.protection.currenthandler.AbstractMaxCurrentHandler
-
- io.openems.edge.battery.protection.currenthandler.ChargeMaxCurrentHandler
-
public class ChargeMaxCurrentHandler extends AbstractMaxCurrentHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChargeMaxCurrentHandler.Builder
-
Field Summary
-
Fields inherited from class io.openems.edge.battery.protection.currenthandler.AbstractMaxCurrentHandler
bmsMaxEverCurrent, clockProvider, forceChargeDischarge, lastCurrentLimit, lastResultTimestamp, temperatureToPercent, voltageToPercent
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChargeMaxCurrentHandler(ClockProvider clockProvider, int initialBmsMaxEverAllowedChargeCurrent, PolyLine voltageToPercent, PolyLine temperatureToPercent, java.lang.Double maxIncreasePerSecond, ForceDischarge.Params forceDischargeParams)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChargeMaxCurrentHandler.Builder
create(ClockProvider clockProvider, int initialBmsMaxEverAllowedChargeCurrent)
Create aChargeMaxCurrentHandler
builder.protected BatteryProtection.ChannelId
getBpBmsChannelId()
Gets the ChannelId for Battery-Protection Limit originating from BMS.protected BatteryProtection.ChannelId
getBpForceCurrentChannelId()
Gets the ChannelId for Battery-Protection Limit by Force Charge/Discharge Mode.protected BatteryProtection.ChannelId
getBpMaxIncreaseAmpereChannelId()
Gets the ChannelId for Battery-Protection Limit by Max-Increase-Ampere ramp.protected BatteryProtection.ChannelId
getBpMaxTemperatureChannelId()
Gets the ChannelId for Battery-Protection Limit by Max-Cell-Temperature.protected BatteryProtection.ChannelId
getBpMaxVoltageChannelId()
Gets the ChannelId for Battery-Protection Limit by Max-Cell-Voltage.protected BatteryProtection.ChannelId
getBpMinTemperatureChannelId()
Gets the ChannelId for Battery-Protection Limit by Min-Cell-Temperature.protected BatteryProtection.ChannelId
getBpMinVoltageChannelId()
Gets the ChannelId for Battery-Protection Limit by Min-Cell-Voltage.-
Methods inherited from class io.openems.edge.battery.protection.currenthandler.AbstractMaxCurrentHandler
calculateCurrentLimit, getForceCurrent, getMaxCellVoltageToPercentLimit, getMaxIncreaseAmpereLimit, getMinCellVoltageToPercentLimit, percentToAmpere
-
-
-
-
Constructor Detail
-
ChargeMaxCurrentHandler
protected ChargeMaxCurrentHandler(ClockProvider clockProvider, int initialBmsMaxEverAllowedChargeCurrent, PolyLine voltageToPercent, PolyLine temperatureToPercent, java.lang.Double maxIncreasePerSecond, ForceDischarge.Params forceDischargeParams)
-
-
Method Detail
-
create
public static ChargeMaxCurrentHandler.Builder create(ClockProvider clockProvider, int initialBmsMaxEverAllowedChargeCurrent)
Create aChargeMaxCurrentHandler
builder.- Parameters:
clockProvider
- aClockProvider
initialBmsMaxEverAllowedChargeCurrent
- the (estimated) maximum allowed charge current. This is used as a reference for percentage values. If during runtime a higher value is provided, that one is taken from then on.- Returns:
- a
ChargeMaxCurrentHandler.Builder
-
getBpBmsChannelId
protected BatteryProtection.ChannelId getBpBmsChannelId()
Description copied from class:AbstractMaxCurrentHandler
Gets the ChannelId for Battery-Protection Limit originating from BMS.- Specified by:
getBpBmsChannelId
in classAbstractMaxCurrentHandler
- Returns:
- the
BatteryProtection.ChannelId
-
getBpMinVoltageChannelId
protected BatteryProtection.ChannelId getBpMinVoltageChannelId()
Description copied from class:AbstractMaxCurrentHandler
Gets the ChannelId for Battery-Protection Limit by Min-Cell-Voltage.- Specified by:
getBpMinVoltageChannelId
in classAbstractMaxCurrentHandler
- Returns:
- the
BatteryProtection.ChannelId
-
getBpMaxVoltageChannelId
protected BatteryProtection.ChannelId getBpMaxVoltageChannelId()
Description copied from class:AbstractMaxCurrentHandler
Gets the ChannelId for Battery-Protection Limit by Max-Cell-Voltage.- Specified by:
getBpMaxVoltageChannelId
in classAbstractMaxCurrentHandler
- Returns:
- the
BatteryProtection.ChannelId
-
getBpMinTemperatureChannelId
protected BatteryProtection.ChannelId getBpMinTemperatureChannelId()
Description copied from class:AbstractMaxCurrentHandler
Gets the ChannelId for Battery-Protection Limit by Min-Cell-Temperature.- Specified by:
getBpMinTemperatureChannelId
in classAbstractMaxCurrentHandler
- Returns:
- the
BatteryProtection.ChannelId
-
getBpMaxTemperatureChannelId
protected BatteryProtection.ChannelId getBpMaxTemperatureChannelId()
Description copied from class:AbstractMaxCurrentHandler
Gets the ChannelId for Battery-Protection Limit by Max-Cell-Temperature.- Specified by:
getBpMaxTemperatureChannelId
in classAbstractMaxCurrentHandler
- Returns:
- the
BatteryProtection.ChannelId
-
getBpMaxIncreaseAmpereChannelId
protected BatteryProtection.ChannelId getBpMaxIncreaseAmpereChannelId()
Description copied from class:AbstractMaxCurrentHandler
Gets the ChannelId for Battery-Protection Limit by Max-Increase-Ampere ramp. Mode.- Specified by:
getBpMaxIncreaseAmpereChannelId
in classAbstractMaxCurrentHandler
- Returns:
- the
BatteryProtection.ChannelId
-
getBpForceCurrentChannelId
protected BatteryProtection.ChannelId getBpForceCurrentChannelId()
Description copied from class:AbstractMaxCurrentHandler
Gets the ChannelId for Battery-Protection Limit by Force Charge/Discharge Mode.- Specified by:
getBpForceCurrentChannelId
in classAbstractMaxCurrentHandler
- Returns:
- the
BatteryProtection.ChannelId
-
-