Class ForceChargeHandler
java.lang.Object
io.openems.edge.common.statemachine.StateHandler<StateMachine.State,Context>
io.openems.edge.controller.ess.emergencycapacityreserve.statemachine.ForceChargeHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static int
getAcPvProduction
(Sum sum) Gets AC-PV Production.protected StateMachine.State
runAndGetNextState
(Context context) Runs the main logic of StateMachine State and returns the next State.Methods inherited from class io.openems.edge.common.statemachine.StateHandler
debugLog, onEntry, onExit
-
Constructor Details
-
ForceChargeHandler
public ForceChargeHandler()
-
-
Method Details
-
runAndGetNextState
protected StateMachine.State runAndGetNextState(Context context) throws OpenemsError.OpenemsNamedException Description copied from class:StateHandler
Runs the main logic of StateMachine State and returns the next State.- Specified by:
runAndGetNextState
in classStateHandler<StateMachine.State,
Context> - Parameters:
context
- theStateHandler
.- Returns:
- the next State
- Throws:
OpenemsError.OpenemsNamedException
-
getAcPvProduction
Gets AC-PV Production.- Parameters:
sum
- theSum
- Returns:
- the AC-PV Production, always >= 0
-