public enum Joint extends Enum<Joint> implements Serializable
Joint
. Holds information about its
available angle range and allows programmer to trim an angle to this range.
ANGLES SHOULD BE SUPPLIED IN DEG SYSTEMEnum Constant and Description |
---|
HE1 |
HE2 |
LAE1 |
LAE2 |
LAE3 |
LAE4 |
LLE1 |
LLE2 |
LLE3 |
LLE4 |
LLE5 |
LLE6 |
RAE1 |
RAE2 |
RAE3 |
RAE4 |
RLE1 |
RLE2 |
RLE3 |
RLE4 |
RLE5 |
RLE6 |
Modifier and Type | Field and Description |
---|---|
private double |
lowerLimit |
private static Map<String,Joint> |
serverNotation |
private double |
upperLimit |
Modifier and Type | Method and Description |
---|---|
static Joint |
fromServerNotation(String jointId)
Returns Joint from server by specified string id.
|
double |
trim(double angleInXml)
Returns lower limit of Joint angle if specified angle parameter is
less than lower limit or upper limit of Joint angle if specified angle
parameter is greater than upper limit.
|
static Joint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Joint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Joint HE1
public static final Joint HE2
public static final Joint RLE1
public static final Joint RLE2
public static final Joint RLE3
public static final Joint RLE4
public static final Joint RLE5
public static final Joint RLE6
public static final Joint RAE1
public static final Joint RAE2
public static final Joint RAE3
public static final Joint RAE4
public static final Joint LLE1
public static final Joint LLE2
public static final Joint LLE3
public static final Joint LLE4
public static final Joint LLE5
public static final Joint LLE6
public static final Joint LAE1
public static final Joint LAE2
public static final Joint LAE3
public static final Joint LAE4
public static Joint[] values()
for (Joint c : Joint.values()) System.out.println(c);
public static Joint 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 static Joint fromServerNotation(String jointId)
jointId
- public double trim(double angleInXml)
angleInXml
-