Package com.highmobility.autoapi
Enum Class Charging.StarterBatteryState
- All Implemented Interfaces:
ByteEnum,Serializable,Comparable<Charging.StarterBatteryState>,Constable
- Enclosing class:
- Charging
public static enum Charging.StarterBatteryState
extends Enum<Charging.StarterBatteryState>
implements ByteEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOk, (battery charge is greater than 70%).Battery partly discharged but ok.Battery is now in saving mode, remote commands are not possible anymore, battery should be charged by driving the vehicle.Vehicle engine will not start anymore, battery must be charged using an external system (battery charge is greater than 0%).Battery partly discharged, battery should be charged by driving the vehicle to avoid loosing functionality (battery charge is greater than 40%). -
Method Summary
Modifier and TypeMethodDescriptionstatic Charging.StarterBatteryStatefromByte(byte byteValue) bytegetByte()static Charging.StarterBatteryStateReturns the enum constant of this class with the specified name.static Charging.StarterBatteryState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RED
Vehicle engine will not start anymore, battery must be charged using an external system (battery charge is greater than 0%). -
YELLOW
Battery partly discharged, battery should be charged by driving the vehicle to avoid loosing functionality (battery charge is greater than 40%). -
GREEN
Ok, (battery charge is greater than 70%). -
ORANGE
Battery is now in saving mode, remote commands are not possible anymore, battery should be charged by driving the vehicle. -
GREEN_YELLOW
Battery partly discharged but ok.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromByte
- Throws:
CommandParseException
-
getByte
public byte getByte()
-