Interface State<STATE extends State<STATE>>
- Type Parameters:
STATE
- the actual State type
- All Superinterfaces:
OptionsEnum
- All Known Implementing Classes:
AbstractForceChargeDischarge.State
,StateMachine.OffGridState
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
,StateMachine.State
Defines a State of a
AbstractStateMachine
. This interface is
typically implemented by an enum.-
Method Summary
Methods inherited from interface io.openems.common.types.OptionsEnum
asCamelCase, getName, getUndefined, getValue, isUndefined
-
Method Details
-
getStates
STATE[] getStates()Gets all the available States.If used inside a 'State' enum, just implement this method using
@Override public State[] getStates() { return State.values(); }
- Returns:
- an array of States, as provided by an enum.
-