Class RunningHandler
- java.lang.Object
-
- io.openems.edge.common.statemachine.StateHandler<StateMachine.State,Context>
-
- io.openems.edge.battery.soltaro.single.versionb.statemachine.RunningHandler
-
public class RunningHandler extends StateHandler<StateMachine.State,Context>
-
-
Field Summary
Fields Modifier and Type Field Description static int
refreshIntervalSeconds
-
Constructor Summary
Constructors Constructor Description RunningHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onEntry(Context context)
Gets called before the StateMachine changes from another State to this State.protected void
onExit(Context context)
Gets called after the StateMachine changes from this State to another State.StateMachine.State
runAndGetNextState(Context context)
Runs the main logic of StateMachine State and returns the next State.
-
-
-
Method Detail
-
onExit
protected void onExit(Context context) throws OpenemsError.OpenemsNamedException
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
-
onEntry
protected void onEntry(Context context) throws OpenemsError.OpenemsNamedException
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
-
-