Class ErrorHandler
java.lang.Object
io.openems.edge.common.statemachine.StateHandler<StateMachine.State,Context>
io.openems.edge.battery.soltaro.single.versionc.statemachine.ErrorHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Gets called before the StateMachine changes from another State to this State.protected void
Gets called after the StateMachine changes from this State to another State.runAndGetNextState
(Context context) Runs the main logic of StateMachine State and returns the next State.
-
Constructor Details
-
ErrorHandler
public ErrorHandler()
-
-
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
-
onExit
Description copied from class:StateHandler
Gets called after the StateMachine changes from this State to another State.- Overrides:
onExit
in classStateHandler<StateMachine.State,
Context> - Parameters:
context
- the Context object- Throws:
OpenemsError.OpenemsNamedException
- on error
-
runAndGetNextState
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
-