RobotView.java
4.45 KB
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
package com.huaheng.api.wcs.domain;
import com.huaheng.pc.config.container.domain.Container;
import lombok.Data;
/***
* @author tongzonghao
*/
@Data
public class RobotView {
private String taskNo;
private String area;
private String containerCode;
private String port;
/**
* boxType : 0:大型货物垛型
* boxType : 1:小型货物垛型
*/
private Integer boxType;
/**
* 源垛型
*/
private Integer fromStackType;
/**
* 去向垛型
*/
private Integer toStackType;
/**
* 来源托盘,起点 1左,2中,3右
*/
private int formPallet;
private String formPalletAlias;
/**
* 来源位置
*/
private int formPosition;
/**
* 去向托盘,终点 1左,2中,3右
*/
private int toPallet;
private String toPalletAlias;
/**
* 去向位置
*/
private int toPosition;
private int state;
private int totalQty;
private int height;
private int fromHeight;
private int toHeight;
public RobotView setFromStackType(Integer fromStackType) {
if(fromStackType > 300){
this.fromStackType = fromStackType - 100;
}else{
this.fromStackType = fromStackType;
}
return this;
}
public RobotView setToStackType(Integer toStackType) {
if(toStackType > 300){
this.toStackType = toStackType - 100;
}else{
this.toStackType = toStackType;
}
return this;
}
public RobotView setFromHeight(int fromHeight) {
this.fromHeight = fromHeight;
return this;
}
public RobotView setTaskNo(String taskNo) {
this.taskNo = taskNo;
return this;
}
public RobotView setArea(String area) {
this.area = area;
return this;
}
public RobotView setContainerCode(String containerCode) {
this.containerCode = containerCode;
return this;
}
public RobotView setPort(String port) {
this.port = port;
return this;
}
public RobotView setBoxType(Integer boxType) {
this.boxType = boxType;
return this;
}
public RobotView setFormPalletAlias(String formPalletAlias) {
this.formPalletAlias = formPalletAlias;
return this;
}
public RobotView setFormPosition(int formPosition) {
this.formPosition = formPosition;
return this;
}
public RobotView setToPalletAlias(String toPalletAlias) {
this.toPalletAlias = toPalletAlias;
return this;
}
public RobotView setToPosition(int toPosition) {
this.toPosition = toPosition;
return this;
}
public RobotView setState(int state) {
this.state = state;
return this;
}
public RobotView setTotalQty(int totalQty) {
this.totalQty = totalQty;
return this;
}
public RobotView setHeight(int height) {
this.height = height;
return this;
}
public RobotView setFormPallet(int formPallet) {
this.formPallet = formPallet;
transferPalletAlias();
return this;
}
public RobotView setToPallet(int toPallet) {
this.toPallet = toPallet;
transferPalletAlias();
return this;
}
public RobotView setToHeight(int toHeight) {
this.toHeight = toHeight;
return this;
}
public void transferPalletAlias(){
switch (this.formPallet){
case 1:
this.formPalletAlias = "立库托盘";
break;
case 2:
this.formPalletAlias = "出库托盘";
break;
case 3:
this.formPalletAlias = "缓存托盘";
break;
default:
}
switch (this.toPallet){
case 1:
this.toPalletAlias = "立库托盘";
break;
case 2:
this.toPalletAlias = "出库托盘";
break;
case 3:
this.toPalletAlias = "缓存托盘";
break;
default:
}
switch (this.toPallet){
case 1:
this.toPalletAlias = "立库托盘";
break;
case 2:
this.toPalletAlias = "出库托盘";
break;
case 3:
this.toPalletAlias = "缓存托盘";
break;
default:
}
}
}