Class FastChargeHandler
java.lang.Object
io.openems.edge.common.statemachine.StateHandler<StateMachine.State,Context>
io.openems.edge.controller.ess.standby.statemachine.FastChargeHandler
Charge the battery with maximum power for 10 minutes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Gets called before the StateMachine changes from another State to this 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, onExit
-
Constructor Details
-
FastChargeHandler
public FastChargeHandler()
-
-
Method Details
-
onEntry
Description copied from class:StateHandler
Gets called before the StateMachine changes from another State to this State.- Overrides:
onEntry
in classStateHandler<StateMachine.State,
Context> - Parameters:
context
- the Context object- Throws:
OpenemsError.OpenemsNamedException
- on error
-
runAndGetNextState
public StateMachine.State runAndGetNextState(Context context) throws IllegalArgumentException, 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:
IllegalArgumentException
OpenemsError.OpenemsNamedException
-