public static enum CAWorker.Status extends java.lang.Enum<CAWorker.Status>
Enum Constant and Description |
---|
HighVoltage |
HighVoltageFail |
IslandSplit |
LoadLoss |
LowVoltage |
NoRating |
Overloads |
Success |
VoltageCollapse |
Modifier and Type | Method and Description |
---|---|
static CAWorker.Status |
fromCode(int code) |
int |
getCode() |
static CAWorker.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CAWorker.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CAWorker.Status Success
public static final CAWorker.Status LoadLoss
public static final CAWorker.Status IslandSplit
public static final CAWorker.Status Overloads
public static final CAWorker.Status VoltageCollapse
public static final CAWorker.Status HighVoltageFail
public static final CAWorker.Status LowVoltage
public static final CAWorker.Status HighVoltage
public static final CAWorker.Status NoRating
public static CAWorker.Status[] values()
for (CAWorker.Status c : CAWorker.Status.values()) System.out.println(c);
public static CAWorker.Status 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 getCode()
public static CAWorker.Status fromCode(int code)