zaber.motion.ascii.LockstepAxes 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;
import zaber.motion.protobufs.Main;
/**
* The axis numbers of a lockstep group.
*/
public final class LockstepAxes {
private int axis1;
/**
* The axis number used to set the first axis.
*/
public void setAxis1(int axis1) {
this.axis1 = axis1;
}
/**
* @return The axis number used to set the first axis.
*/
public int getAxis1() {
return this.axis1;
}
private int axis2;
/**
* The axis number used to set the second axis.
*/
public void setAxis2(int axis2) {
this.axis2 = axis2;
}
/**
* @return The axis number used to set the second axis.
*/
public int getAxis2() {
return this.axis2;
}
private int axis3;
/**
* The axis number used to set the third axis.
*/
public void setAxis3(int axis3) {
this.axis3 = axis3;
}
/**
* @return The axis number used to set the third axis.
*/
public int getAxis3() {
return this.axis3;
}
private int axis4;
/**
* The axis number used to set the fourth axis.
*/
public void setAxis4(int axis4) {
this.axis4 = axis4;
}
/**
* @return The axis number used to set the fourth axis.
*/
public int getAxis4() {
return this.axis4;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("LockstepAxes { ");
sb.append("axis1: ");
sb.append(this.axis1);
sb.append(", ");
sb.append("axis2: ");
sb.append(this.axis2);
sb.append(", ");
sb.append("axis3: ");
sb.append(this.axis3);
sb.append(", ");
sb.append("axis4: ");
sb.append(this.axis4);
sb.append(" }");
return sb.toString();
}
public static LockstepAxes fromProtobuf(Main.LockstepAxes pbData) {
LockstepAxes obj = new LockstepAxes();
obj.setAxis1(pbData.getAxis1());
obj.setAxis2(pbData.getAxis2());
obj.setAxis3(pbData.getAxis3());
obj.setAxis4(pbData.getAxis4());
return obj;
}
}