Class AbstractForceChargeDischarge
java.lang.Object
io.openems.edge.common.statemachine.AbstractStateMachine<AbstractForceChargeDischarge.State,AbstractForceChargeDischarge.Context>
io.openems.edge.battery.protection.force.AbstractForceChargeDischarge
- Direct Known Subclasses:
ForceCharge
,ForceDischarge
public abstract class AbstractForceChargeDischarge
extends AbstractStateMachine<AbstractForceChargeDischarge.State,AbstractForceChargeDischarge.Context>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theStateHandler
for each State.protected abstract AbstractForceChargeDischarge.State
handleBlockModeState
(int minCellVoltage, int maxCellVoltage) protected abstract AbstractForceChargeDischarge.State
handleForceModeState
(int minCellVoltage, int maxCellVoltage) protected abstract AbstractForceChargeDischarge.State
handleUndefinedState
(int minCellVoltage, int maxCellVoltage) protected abstract AbstractForceChargeDischarge.State
handleWaitForForceModeState
(int minCellVoltage, int maxCellVoltage, Duration sinceStart) Methods inherited from class io.openems.edge.common.statemachine.AbstractStateMachine
forceNextState, getCurrentState, getPreviousState, run
-
Field Details
-
WAIT_FOR_FORCE_MODE_SECONDS
protected static final int WAIT_FOR_FORCE_MODE_SECONDS- See Also:
-
-
Constructor Details
-
AbstractForceChargeDischarge
public AbstractForceChargeDischarge()
-
-
Method Details
-
getStateHandler
public StateHandler<AbstractForceChargeDischarge.State,AbstractForceChargeDischarge.Context> getStateHandler(AbstractForceChargeDischarge.State state) Description copied from class:AbstractStateMachine
Gets theStateHandler
for each State.This method is called once for every available State during construction of the StateMachine in order to initialize an internal list of StateHandlers.
- Specified by:
getStateHandler
in classAbstractStateMachine<AbstractForceChargeDischarge.State,
AbstractForceChargeDischarge.Context> - Parameters:
state
- the State- Returns:
- the
StateHandler
for the given State
-
handleUndefinedState
protected abstract AbstractForceChargeDischarge.State handleUndefinedState(int minCellVoltage, int maxCellVoltage) -
handleWaitForForceModeState
protected abstract AbstractForceChargeDischarge.State handleWaitForForceModeState(int minCellVoltage, int maxCellVoltage, Duration sinceStart) -
handleForceModeState
protected abstract AbstractForceChargeDischarge.State handleForceModeState(int minCellVoltage, int maxCellVoltage) -
handleBlockModeState
protected abstract AbstractForceChargeDischarge.State handleBlockModeState(int minCellVoltage, int maxCellVoltage)
-