public static enum FiremanKeyhole.KeyState extends java.lang.Enum<FiremanKeyhole.KeyState>
| Enum Constant and Description |
|---|
HOLD_BYPASS
The HOLD_BYPASS state dictates that:
If installed on a landing, the elevator should operate as though it were in normal mode. If installed in a cabin, the cabin should remain at this landing. |
OFF
The OFF state dictates that no action need be taken in response to this state.
|
ON
The ON state dictates that:
If installed on a landing, the cabin should be called to this landing. If installed in a cabin, the operator should control the car while it is in emergency mode. |
| Modifier and Type | Field and Description |
|---|---|
boolean |
isEmergency
Declares whether this state is indicative of emergency operation
|
| Modifier and Type | Method and Description |
|---|---|
static FiremanKeyhole.KeyState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FiremanKeyhole.KeyState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FiremanKeyhole.KeyState OFF
public static final FiremanKeyhole.KeyState ON
public static final FiremanKeyhole.KeyState HOLD_BYPASS
public final boolean isEmergency
public static FiremanKeyhole.KeyState[] values()
for (FiremanKeyhole.KeyState c : FiremanKeyhole.KeyState.values()) System.out.println(c);
public static FiremanKeyhole.KeyState 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