public static enum HardwareStates.ElevatorState extends java.lang.Enum<HardwareStates.ElevatorState>
| Enum Constant | Description |
|---|---|
BOTTOM |
State when the elevator cannot go any lower (bottom elevator limit switch is pressed).
|
TOP |
State when the elevator cannot go any higher (top elevator limit switch is pressed).
|
| Modifier and Type | Method | Description |
|---|---|---|
static HardwareStates.ElevatorState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static HardwareStates.ElevatorState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HardwareStates.ElevatorState BOTTOM
public static final HardwareStates.ElevatorState TOP
public static HardwareStates.ElevatorState[] values()
for (HardwareStates.ElevatorState c : HardwareStates.ElevatorState.values()) System.out.println(c);
public static HardwareStates.ElevatorState 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