Class GoRunningHandler
java.lang.Object
io.openems.edge.common.statemachine.StateHandler<StateMachine.State,Context>
io.openems.edge.battery.fenecon.home.statemachine.GoRunningHandler
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static final record
protected static enum
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
debugLog()
Gets a message that is suitable for a continuous Debug log.protected 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
onExit
-
Field Details
-
grs
-
-
Constructor Details
-
GoRunningHandler
public GoRunningHandler()
-
-
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 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
-
debugLog
Description copied from class:StateHandler
Gets a message that is suitable for a continuous Debug log. Returns 'null' by default which causes output of the name of the State in Camel-Case.- Overrides:
debugLog
in classStateHandler<StateMachine.State,
Context> - Returns:
- the debug log output
-