zaber.motion.ascii.StreamMode 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.ascii;
/**
* Mode of a stream.
*/
public enum StreamMode {
/**
* Disabled.
*/
DISABLED(0),
/**
* Store.
*/
STORE(1),
/**
* StoreArbitraryAxes.
*/
STORE_ARBITRARY_AXES(2),
/**
* Live.
*/
LIVE(3);
private int value;
StreamMode(int value) {
this.value = value;
}
public int getValue() {
return value;
}
public static StreamMode valueOf(int argValue) {
for (StreamMode value : values()) {
if (value.value == argValue) {
return value;
}
}
throw new IllegalArgumentException(String.valueOf(argValue));
}
}