Class BatteryProtection.Builder
java.lang.Object
io.openems.edge.battery.protection.BatteryProtection.Builder
- Enclosing class:
- BatteryProtection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyBatteryProtectionDefinition
(BatteryProtectionDefinition def, ClockProvider clockProvider) Applies all values from aBatteryProtectionDefinition
.build()
Builds theBatteryProtection
instance.setChargeMaxCurrentHandler
(ChargeMaxCurrentHandler chargeMaxCurrentHandler) Sets theChargeMaxCurrentHandler
.setDischargeMaxCurrentHandler
(DischargeMaxCurrentHandler dischargeMaxCurrentHandler) Sets theDischargeMaxCurrentHandler
.
-
Constructor Details
-
Builder
-
-
Method Details
-
applyBatteryProtectionDefinition
public BatteryProtection.Builder applyBatteryProtectionDefinition(BatteryProtectionDefinition def, ClockProvider clockProvider) Applies all values from aBatteryProtectionDefinition
.- Parameters:
def
- theBatteryProtectionDefinition
clockProvider
- aClockProvider
- Returns:
- a
BatteryProtection.Builder
-
setChargeMaxCurrentHandler
public BatteryProtection.Builder setChargeMaxCurrentHandler(ChargeMaxCurrentHandler chargeMaxCurrentHandler) Sets theChargeMaxCurrentHandler
.- Parameters:
chargeMaxCurrentHandler
- theChargeMaxCurrentHandler
- Returns:
- a
BatteryProtection.Builder
-
setDischargeMaxCurrentHandler
public BatteryProtection.Builder setDischargeMaxCurrentHandler(DischargeMaxCurrentHandler dischargeMaxCurrentHandler) Sets theDischargeMaxCurrentHandler
.- Parameters:
dischargeMaxCurrentHandler
- theDischargeMaxCurrentHandler
- Returns:
- a
BatteryProtection.Builder
-
build
Builds theBatteryProtection
instance.- Returns:
- a
BatteryProtection
-