jianghaiyue
16 小时以前 d808837cd368c3772962be591aa6532bcc0cf3e4
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
package com.algo.model;
 
 
/**
 * 路径代码模型
 * 表示路径中的单个节点信息
 */
public class PathCode {
 
    /**
     * 路径点编号
     */
    private String code;
 
    /**
     * 方向角度
     */
    private String direction;
 
    /**
     * 动作类型
     */
    private String actionType;
 
    /**
     * 任务ID
     */
    private String taskId;
 
    /**
     * 位置类型
     */
    private String posType;
 
    /**
     * 背篓层级
     */
    private int lev;
 
    /**
     * 是否为目标点
     */
    private boolean isTargetPoint;
 
    /**
     * 到达时间(毫秒时间戳)
     */
    private Long arrivalTime;
 
    /**
     * 离开时间(毫秒时间戳)
     */
    private Long departureTime;
 
    /**
     * 累计时间(从路径起点开始的累计时间,毫秒)
     */
    private Long cumulativeTime;
 
    // 构造函数
    public PathCode() {
    }
 
    public PathCode(String code, String direction) {
        this.code = code;
        this.direction = direction;
    }
 
    public PathCode(String code, String direction, String actionType, String taskId,
                    String posType, int lev, boolean isTargetPoint) {
        this.code = code;
        this.direction = direction;
        this.actionType = actionType;
        this.taskId = taskId;
        this.posType = posType;
        this.lev = lev;
        this.isTargetPoint = isTargetPoint;
    }
 
    // Getter和Setter方法
    public String getCode() {
        return code;
    }
 
    public void setCode(String code) {
        this.code = code;
    }
 
    public String getDirection() {
        return direction;
    }
 
    public void setDirection(String direction) {
        this.direction = direction;
    }
 
    public String getActionType() {
        return actionType;
    }
 
    public void setActionType(String actionType) {
        this.actionType = actionType;
    }
 
    public String getTaskId() {
        return taskId;
    }
 
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
 
    public String getPosType() {
        return posType;
    }
 
    public void setPosType(String posType) {
        this.posType = posType;
    }
 
    public int getLev() {
        return lev;
    }
 
    public void setLev(int lev) {
        this.lev = lev;
    }
 
    public boolean isTargetPoint() {
        return isTargetPoint;
    }
 
    public void setTargetPoint(boolean targetPoint) {
        isTargetPoint = targetPoint;
    }
 
    public Long getArrivalTime() {
        return arrivalTime;
    }
 
    public void setArrivalTime(Long arrivalTime) {
        this.arrivalTime = arrivalTime;
    }
 
    public Long getDepartureTime() {
        return departureTime;
    }
 
    public void setDepartureTime(Long departureTime) {
        this.departureTime = departureTime;
    }
 
    public Long getCumulativeTime() {
        return cumulativeTime;
    }
 
    public void setCumulativeTime(Long cumulativeTime) {
        this.cumulativeTime = cumulativeTime;
    }
 
    @Override
    public String toString() {
        return "PathCode{" +
                "code='" + code + '\'' +
                ", direction='" + direction + '\'' +
                ", actionType='" + actionType + '\'' +
                ", taskId='" + taskId + '\'' +
                ", posType='" + posType + '\'' +
                ", lev=" + lev +
                ", isTargetPoint=" + isTargetPoint +
                ", arrivalTime=" + arrivalTime +
                ", departureTime=" + departureTime +
                ", cumulativeTime=" + cumulativeTime +
                '}';
    }