package com.northglass.entity;
|
|
public class Step {
|
|
private char axis;
|
private int value;
|
private int shapeId;
|
private int infoId;
|
|
public Step() { }
|
|
public Step(char axis, int value) {
|
this.axis = axis;
|
this.value = value;
|
}
|
|
public Step(char axis, int value, int infoId) {
|
this.axis = axis;
|
this.value = value;
|
this.infoId = infoId;
|
}
|
|
public Step(char axis, int value, int shapeId, int infoId) {
|
this.axis = axis;
|
this.value = value;
|
this.shapeId = shapeId;
|
this.infoId = infoId;
|
}
|
|
public char getAxis() {
|
return axis;
|
}
|
|
public void setAxis(char axis) {
|
this.axis = axis;
|
}
|
|
public int getValue() {
|
return value;
|
}
|
|
public void setValue(int value) {
|
this.value = value;
|
}
|
|
public int getInfoId() {
|
return infoId;
|
}
|
|
public void setInfoId(int infoId) {
|
this.infoId = infoId;
|
}
|
|
public int getShapeId() {
|
return shapeId;
|
}
|
|
public void setShapeId(int shapeId) {
|
this.shapeId = shapeId;
|
}
|
|
@Override
|
public String toString() {
|
if (this.getShapeId() != 0 && this.getInfoId() != 0) {
|
return this.getAxis() + "=" + this.getValue() + " Shape=" + this.getShapeId() + " Info=" + this.getInfoId();
|
}
|
else if (this.getInfoId() != 0) {
|
return this.getAxis() + "=" + this.getValue() + " Info=" + this.getInfoId();
|
}
|
else {
|
return this.getAxis() + "=" + this.getValue();
|
}
|
}
|
}
|