public enum ChargeState extends java.lang.Enum<ChargeState> implements OptionsEnum
Enum Constant and Description |
---|
HIGHTHRESHOLD_TIMESLOT
high threshold time slot state: in this state the where the peak shaving
happens with the congfigured peak shave power starts.
|
HYSTERESIS
Hysteresis charge state: block charging after 'Normal charge' till the
battery is not anymore completely full.
|
NORMAL
Normal charge state: does not charge the battery, it is waiting to go to slow
charge state.
|
SLOWCHARGE
slow charge state: it is slowly charging the battery to make soc 100%, it can
go to either hystersis state or highthreshold phase.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets this enums String representation.
|
OptionsEnum |
getUndefined()
Gets the enum that is used for 'UNDEFINED' values.
|
int |
getValue()
Gets this enums int representation.
|
static ChargeState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChargeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
asCamelCase, isUndefined
public static final ChargeState NORMAL
public static final ChargeState SLOWCHARGE
public static final ChargeState HYSTERESIS
public static final ChargeState HIGHTHRESHOLD_TIMESLOT
public static ChargeState[] values()
for (ChargeState c : ChargeState.values()) System.out.println(c);
public static ChargeState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
OptionsEnum
getValue
in interface OptionsEnum
public java.lang.String getName()
OptionsEnum
getName
in interface OptionsEnum
public OptionsEnum getUndefined()
OptionsEnum
getUndefined
in interface OptionsEnum