public enum State extends Enum<State>
| Enum Constant and Description |
|---|
Active |
InError |
Offline |
Ready |
Recovering |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(Command c,
CommandExecutor sys) |
State |
nextState(Command c,
CommandExecutor sys) |
static State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final State Offline
public static final State Ready
public static final State Active
public static final State InError
public static final State Recovering
public static State[] values()
for (State c : State.values()) System.out.println(c);
public static State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic boolean canProcess(Command c, CommandExecutor sys)
public State nextState(Command c, CommandExecutor sys)
Copyright © 2013 LSST. All Rights Reserved.