严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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();
        }
    }
}