Class StateMachine
- java.lang.Object
-
- io.openems.edge.common.statemachine.AbstractStateMachine<StateMachine.State,Context>
-
- io.openems.edge.battery.soltaro.single.versionb.statemachine.StateMachine
-
public class StateMachine extends AbstractStateMachine<StateMachine.State,Context>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StateMachine.State
-
Constructor Summary
Constructors Constructor Description StateMachine(StateMachine.State initialState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateHandler<StateMachine.State,Context>
getStateHandler(StateMachine.State state)
Gets theStateHandler
for each State.-
Methods inherited from class io.openems.edge.common.statemachine.AbstractStateMachine
forceNextState, getCurrentState, getPreviousState, run
-
-
-
-
Constructor Detail
-
StateMachine
public StateMachine(StateMachine.State initialState)
-
-
Method Detail
-
getStateHandler
public StateHandler<StateMachine.State,Context> getStateHandler(StateMachine.State state)
Description copied from class:AbstractStateMachine
Gets theStateHandler
for each State.This method is called once for every available State during construction of the StateMachine in order to initialize an internal list of StateHandlers.
- Specified by:
getStateHandler
in classAbstractStateMachine<StateMachine.State,Context>
- Parameters:
state
- the State- Returns:
- the
StateHandler
for the given State
-
-