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
public interface State<STATE extends State<STATE>> extends OptionsEnum
Defines a State of aAbstractStateMachine
. This interface is typically implemented by an enum.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description STATE[]
getStates()
Gets all the available States.-
Methods inherited from interface io.openems.common.types.OptionsEnum
asCamelCase, getName, getUndefined, getValue, isUndefined
-
-
-
-
Method Detail
-
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.
-
-