zaber.motion.RotationDirection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of motion-library Show documentation
Show all versions of motion-library Show documentation
A library that aims to provide easy-to-use API for communication with Zaber devices using Zaber ASCII Protocol.
// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //
// ============== DO NOT EDIT DIRECTLY ============== //
package zaber.motion;
/**
* Direction of rotation.
*/
public enum RotationDirection {
/**
* Clockwise.
*/
CLOCKWISE(0),
/**
* Counterclockwise.
*/
COUNTERCLOCKWISE(1),
/**
* CW.
*/
CW(0),
/**
* CCW.
*/
CCW(1);
private int value;
RotationDirection(int value) {
this.value = value;
}
public int getValue() {
return value;
}
public static RotationDirection valueOf(int argValue) {
for (RotationDirection value : values()) {
if (value.value == argValue) {
return value;
}
}
throw new IllegalArgumentException(String.valueOf(argValue));
}
}