public enum PowerSource extends java.lang.Enum<PowerSource>
| Enum Constant and Description |
|---|
BATTERY
If resource is on battery.
|
DC_SOURCE
If resource is on dc source.
|
EMERGENCY_CONST_POWER
If resource is on emergency constant power.
|
EMERGENCY_TRANSFER_SWITCH
If resource is on emergency transfer switch.
|
MAINS_3_PHASE
If resource is on mains three-phase power.
|
MAINS_SINGLE_PHASE
If resource is on mains single phase power.
|
MAINS_UNKNOWN_PHASE
If resource on mains, but phase is not known yet.
|
NOT_AVAILABLE
If power source of resource is not available.
|
UNKNOWN
If power source is not known yet.
|
| Modifier and Type | Method and Description |
|---|---|
static PowerSource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PowerSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerSource UNKNOWN
public static final PowerSource MAINS_SINGLE_PHASE
public static final PowerSource MAINS_3_PHASE
public static final PowerSource MAINS_UNKNOWN_PHASE
public static final PowerSource BATTERY
public static final PowerSource DC_SOURCE
public static final PowerSource EMERGENCY_CONST_POWER
public static final PowerSource EMERGENCY_TRANSFER_SWITCH
public static final PowerSource NOT_AVAILABLE
public static PowerSource[] values()
for (PowerSource c : PowerSource.values()) System.out.println(c);
public static PowerSource 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