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
-
public class ForceDischarge extends AbstractForceChargeDischarge
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ForceDischarge.Params
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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, java.time.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 Detail
-
from
public static ForceDischarge from(ForceDischarge.Params params)
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, java.time.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
-
-