public enum Axis extends Enum<Axis>
| Modifier and Type | Method and Description |
|---|---|
static Axis |
fromAxisNum(int axnum)
Find the Axis value having the given PLC axis number.
|
static Axis |
fromName(String name)
Find the Axis value having the given axis name using a case-insensitive search.
|
static Axis |
getMinusXSide()
Gets the axis that's controlling the blade set on the -X side.
|
String |
getName()
The name used for the axis in motorplatform commands.
|
int |
getPLCAxisNum()
The axis number used by the PLC code.
|
static Axis |
getPlusXSide()
Gets the axis that's controlling the blade set on the +X side.
|
boolean |
isPlusXSide()
Tells whether the axis is for the +X blade set or the -X.
|
static Axis |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Axis[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Axis[] values()
for (Axis c : Axis.values()) System.out.println(c);
public static Axis 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 String getName()
public int getPLCAxisNum()
public static Axis fromName(String name)
name - The axis name to find.public static Axis fromAxisNum(int axnum)
axnum - The PLC axis number to find.public boolean isPlusXSide()
public static Axis getPlusXSide()
public static Axis getMinusXSide()
Copyright © 2020 LSST. All rights reserved.