Class ForceDischarge
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.ForceDischarge
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Holds parameters for 'Force Discharge' 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 ForceDischarge
from
(ForceDischarge.Params params) Builds aForceDischarge
instance fromForceDischarge.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
debugLog, forceNextState, getCurrentState, getPreviousState, run
-
Method Details
-
from
Builds aForceDischarge
instance fromForceDischarge.Params
.- Parameters:
params
- the parameter object- Returns:
- a
ForceDischarge
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
-