Class ForceCharge
java.lang.Object
io.openems.edge.common.statemachine.AbstractStateMachine<AbstractForceChargeDischarge.State,AbstractForceChargeDischarge.Context>
io.openems.edge.battery.protection.force.AbstractForceChargeDischarge
io.openems.edge.battery.protection.force.ForceCharge
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Holds parameters for 'Force Charge' mode.Nested classes/interfaces inherited from class io.openems.edge.battery.protection.force.AbstractForceChargeDischarge
AbstractForceChargeDischarge.Context, AbstractForceChargeDischarge.State
-
Field Summary
Fields inherited from class io.openems.edge.battery.protection.force.AbstractForceChargeDischarge
WAIT_FOR_FORCE_MODE_SECONDS
-
Method Summary
Modifier and TypeMethodDescriptionstatic ForceCharge
from
(ForceCharge.Params params) Builds aForceCharge
instance fromForceCharge.Params
.protected AbstractForceChargeDischarge.State
handleBlockModeState
(int minCellVoltage, int maxCellVoltage) protected AbstractForceChargeDischarge.State
handleForceModeState
(int minCellVoltage, int maxCellVoltage) protected AbstractForceChargeDischarge.State
handleUndefinedState
(int minCellVoltage, int maxCellVoltage) protected AbstractForceChargeDischarge.State
handleWaitForForceModeState
(int minCellVoltage, int maxCellVoltage, Duration durationSinceStart) Methods inherited from class io.openems.edge.battery.protection.force.AbstractForceChargeDischarge
getStateHandler
Methods inherited from class io.openems.edge.common.statemachine.AbstractStateMachine
forceNextState, getCurrentState, getPreviousState, run
-
Method Details
-
from
Builds aForceCharge
instance fromForceCharge.Params
.- Parameters:
params
- the parameter object- Returns:
- a
ForceCharge
instance
-
handleUndefinedState
protected AbstractForceChargeDischarge.State handleUndefinedState(int minCellVoltage, int maxCellVoltage) - Specified by:
handleUndefinedState
in classAbstractForceChargeDischarge
-
handleWaitForForceModeState
protected AbstractForceChargeDischarge.State handleWaitForForceModeState(int minCellVoltage, int maxCellVoltage, Duration durationSinceStart) - Specified by:
handleWaitForForceModeState
in classAbstractForceChargeDischarge
-
handleForceModeState
protected AbstractForceChargeDischarge.State handleForceModeState(int minCellVoltage, int maxCellVoltage) - Specified by:
handleForceModeState
in classAbstractForceChargeDischarge
-
handleBlockModeState
protected AbstractForceChargeDischarge.State handleBlockModeState(int minCellVoltage, int maxCellVoltage) - Specified by:
handleBlockModeState
in classAbstractForceChargeDischarge
-