public enum ProgramName extends Enum<ProgramName>
ordinal() to get
the index number used by the motor controller and use name() to get
the string used in AcroBasic commands.| Enum Constant and Description |
|---|
PROG0 |
PROG1 |
PROG2 |
PROG3 |
PROG4 |
PROG5 |
PROG6 |
PROG7 |
| Modifier and Type | Method and Description |
|---|---|
int |
index()
Gets the motor controller's index number of the program.
|
String |
reference()
Gets the string used to refer to the program in AcroBasic.
|
static ProgramName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProgramName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProgramName PROG0
public static final ProgramName PROG1
public static final ProgramName PROG2
public static final ProgramName PROG3
public static final ProgramName PROG4
public static final ProgramName PROG5
public static final ProgramName PROG6
public static final ProgramName PROG7
public static ProgramName[] values()
for (ProgramName c : ProgramName.values()) System.out.println(c);
public static ProgramName 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 int index()
public String reference()
Copyright © 2017 LSST. All rights reserved.