org.flexiblepower.ral.drivers.battery
public enum BatteryMode extends java.lang.Enum<BatteryMode>
Enum Constant and Description |
---|
CHARGE
When the battery is charging (taking energy from the net).
|
DISCHARGE
When the battery is discharging (providing energy to the net).
|
IDLE
When the battery is idle (no interaction with the net).
|
Modifier and Type | Method and Description |
---|---|
static BatteryMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BatteryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatteryMode IDLE
public static final BatteryMode CHARGE
public static final BatteryMode DISCHARGE
public static BatteryMode[] values()
for (BatteryMode c : BatteryMode.values()) System.out.println(c);
public static BatteryMode 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 null