Class DischargeMaxCurrentHandler
java.lang.Object
io.openems.edge.battery.protection.currenthandler.AbstractMaxCurrentHandler
io.openems.edge.battery.protection.currenthandler.DischargeMaxCurrentHandler
-
Nested Class Summary
-
Field Summary
Fields inherited from class io.openems.edge.battery.protection.currenthandler.AbstractMaxCurrentHandler
bmsMaxEverCurrent, clockProvider, forceChargeDischarge, lastCurrentLimit, lastResultTimestamp, temperatureToPercent, voltageToPercent
-
Constructor Summary
ModifierConstructorDescriptionprotected
DischargeMaxCurrentHandler
(ClockProvider clockProvider, int initialBmsMaxEverDischargeCurrent, PolyLine voltageToPercent, PolyLine temperatureToPercent, Double maxIncreasePerSecond, ForceCharge forceCharge) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ClockProvider clockProvider, int initialBmsMaxEverDischargeCurrent) Create aDischargeMaxCurrentHandler
builder.protected BatteryProtection.ChannelId
Gets the ChannelId for Battery-Protection Limit originating from BMS.protected BatteryProtection.ChannelId
Gets the ChannelId for Battery-Protection Limit by Force Charge/Discharge Mode.protected BatteryProtection.ChannelId
Gets the ChannelId for Battery-Protection Limit by Max-Increase-Ampere ramp.protected BatteryProtection.ChannelId
Gets the ChannelId for Battery-Protection Limit by Max-Cell-Temperature.protected BatteryProtection.ChannelId
Gets the ChannelId for Battery-Protection Limit by Max-Cell-Voltage.protected BatteryProtection.ChannelId
Gets the ChannelId for Battery-Protection Limit by Min-Cell-Temperature.protected BatteryProtection.ChannelId
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 Details
-
DischargeMaxCurrentHandler
protected DischargeMaxCurrentHandler(ClockProvider clockProvider, int initialBmsMaxEverDischargeCurrent, PolyLine voltageToPercent, PolyLine temperatureToPercent, Double maxIncreasePerSecond, ForceCharge forceCharge)
-
-
Method Details
-
create
public static DischargeMaxCurrentHandler.Builder create(ClockProvider clockProvider, int initialBmsMaxEverDischargeCurrent) Create aDischargeMaxCurrentHandler
builder.- Parameters:
clockProvider
- aClockProvider
initialBmsMaxEverDischargeCurrent
- the (estimated) maximum allowed discharge 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
DischargeMaxCurrentHandler.Builder
-
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
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
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
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
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
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
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
-