Class AbstractMaxCurrentHandler.Builder<T extends AbstractMaxCurrentHandler.Builder<?>>
java.lang.Object
io.openems.edge.battery.protection.currenthandler.AbstractMaxCurrentHandler.Builder<T>
- Direct Known Subclasses:
ChargeMaxCurrentHandler.Builder
,DischargeMaxCurrentHandler.Builder
- Enclosing class:
- AbstractMaxCurrentHandler
public abstract static class AbstractMaxCurrentHandler.Builder<T extends AbstractMaxCurrentHandler.Builder<?>>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClockProvider
protected final int
protected Double
protected PolyLine
protected PolyLine
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Builder
(ClockProvider clockProvider, int initialBmsMaxEverCurrent) Creates aAbstractMaxCurrentHandler.Builder
forAbstractMaxCurrentHandler
. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
self()
setMaxIncreasePerSecond
(double maxIncreasePerSecond) Sets the Max-Increase-Per-Second parameter in [A].setTemperatureToPercent
(PolyLine temperatureToPercent) Sets the Temperature-To-Percent characteristics.setVoltageToPercent
(PolyLine voltageToPercent) Sets the Voltage-To-Percent characteristics.
-
Field Details
-
clockProvider
-
initialBmsMaxEverCurrent
protected final int initialBmsMaxEverCurrent -
voltageToPercent
-
temperatureToPercent
-
maxIncreasePerSecond
-
-
Constructor Details
-
Builder
Creates aAbstractMaxCurrentHandler.Builder
forAbstractMaxCurrentHandler
.- Parameters:
clockProvider
- aClockProvider
, mainly for JUnit testsinitialBmsMaxEverCurrent
- the (estimated) maximum allowed 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.
-
-
Method Details
-
setVoltageToPercent
Sets the Voltage-To-Percent characteristics.- Parameters:
voltageToPercent
- thePolyLine
- Returns:
- a
AbstractMaxCurrentHandler.Builder
-
setTemperatureToPercent
Sets the Temperature-To-Percent characteristics.- Parameters:
temperatureToPercent
- thePolyLine
- Returns:
- a
AbstractMaxCurrentHandler.Builder
-
setMaxIncreasePerSecond
Sets the Max-Increase-Per-Second parameter in [A].- Parameters:
maxIncreasePerSecond
- value in [A] per Second.- Returns:
- a
AbstractMaxCurrentHandler.Builder
-
self
-