TTinfoDetailDynamicData.java
7.18 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
package com.bsth.service.schedule.datatools;
import com.bsth.service.schedule.exception.ScheduleException;
import com.bsth.service.schedule.utils.DataToolsFile;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.List;
/**
* 动态时刻表数据。
*/
public interface TTinfoDetailDynamicData {
//---------------------- 生成时刻表用对象(以下) ---------------------//
public static enum BcType { // 班次类型枚举
IN("in"), // 进场
OUT("out"), // 出场
BD("bd"), // 早例保
LC("lc"), // 晚例保
NORMAL("normal"); // 正常
private String flag;
@JsonCreator
private BcType(String flag) {
this.flag = flag;
}
@JsonValue
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
}
public static class BcObj { // 班次对象
/** 班次时间 */
private Integer bcsj;
/** 停站时间 */
private Integer ssj;
/** 吃饭时间 */
private Integer eatsj;
/** 停车场id */
private Integer tccid;
/** 起点站id */
private Integer qdzid;
/** 终点站id */
private Integer zdzid;
/** 是否上行 */
private Boolean isUp;
/** 班次类型 */
private BcType bcType;
/** 发车时刻 */
private String fcsj;
/** 第几圈(从1开始) */
private Integer groupNo;
/** 圈里第几个班次(1或者2) */
private Integer groupBcNo;
public Integer getBcsj() {
return bcsj;
}
public void setBcsj(Integer bcsj) {
this.bcsj = bcsj;
}
public Integer getSsj() {
return ssj;
}
public void setSsj(Integer ssj) {
this.ssj = ssj;
}
public Integer getEatsj() {
return eatsj;
}
public void setEatsj(Integer eatsj) {
this.eatsj = eatsj;
}
public Integer getTccid() {
return tccid;
}
public void setTccid(Integer tccid) {
this.tccid = tccid;
}
public Integer getQdzid() {
return qdzid;
}
public void setQdzid(Integer qdzid) {
this.qdzid = qdzid;
}
public Integer getZdzid() {
return zdzid;
}
public void setZdzid(Integer zdzid) {
this.zdzid = zdzid;
}
public BcType getBcType() {
return bcType;
}
public void setBcType(BcType bcType) {
this.bcType = bcType;
}
public String getFcsj() {
return fcsj;
}
public void setFcsj(String fcsj) {
this.fcsj = fcsj;
}
public Boolean getIsUp() {
return isUp;
}
public void setIsUp(Boolean isUp) {
this.isUp = isUp;
}
public Integer getGroupNo() {
return groupNo;
}
public void setGroupNo(Integer groupNo) {
this.groupNo = groupNo;
}
public Integer getGroupBcNo() {
return groupBcNo;
}
public void setGroupBcNo(Integer groupBcNo) {
this.groupBcNo = groupBcNo;
}
}
public static class LpObj { // 路牌对象
/** 路牌名字 */
private String lpname;
/** 每圈的第一个班次是否上行 */
private Boolean isUp;
/** 第一个班次起点站路由id */
private Integer stationRouteId1;
/** 第二个班次起点站路由id */
private Integer stationRouteId2;
/** 班次列表 */
private List<BcObj> bcObjList;
/** 总圈数 */
private Integer groupCount;
/** 总工时 */
private Double zgs;
/** 总班次 */
private Integer zbc;
public String getLpname() {
return lpname;
}
public void setLpname(String lpname) {
this.lpname = lpname;
}
public Boolean getIsUp() {
return isUp;
}
public void setIsUp(Boolean isUp) {
this.isUp = isUp;
}
public List<BcObj> getBcObjList() {
return bcObjList;
}
public void setBcObjList(List<BcObj> bcObjList) {
this.bcObjList = bcObjList;
}
public Integer getGroupCount() {
return groupCount;
}
public void setGroupCount(Integer groupCount) {
this.groupCount = groupCount;
}
public Double getZgs() {
return zgs;
}
public void setZgs(Double zgs) {
this.zgs = zgs;
}
public Integer getZbc() {
return zbc;
}
public void setZbc(Integer zbc) {
this.zbc = zbc;
}
public Integer getStationRouteId1() {
return stationRouteId1;
}
public void setStationRouteId1(Integer stationRouteId1) {
this.stationRouteId1 = stationRouteId1;
}
public Integer getStationRouteId2() {
return stationRouteId2;
}
public void setStationRouteId2(Integer stationRouteId2) {
this.stationRouteId2 = stationRouteId2;
}
}
public static class StatInfo { // 统计数据对象
/** 统计项目 */
private String statItem;
/** 统计值 */
private Double statValue;
public String getStatItem() {
return statItem;
}
public void setStatItem(String statItem) {
this.statItem = statItem;
}
public Double getStatValue() {
return statValue;
}
public void setStatValue(Double statValue) {
this.statValue = statValue;
}
}
public static class DTInfos { // 所有数据信息
/** 路牌班次数据列表 */
private List<LpObj> lpObjList;
/** 统计数据列表 */
private List<StatInfo> statInfoList;
public List<LpObj> getLpObjList() {
return lpObjList;
}
public void setLpObjList(List<LpObj> lpObjList) {
this.lpObjList = lpObjList;
}
public List<StatInfo> getStatInfoList() {
return statInfoList;
}
public void setStatInfoList(List<StatInfo> statInfoList) {
this.statInfoList = statInfoList;
}
}
//---------------------- 生成时刻表用对象(以上) ---------------------//
/**
* 导出动态时刻表数据。
* @param dtInfos
* @return
* @throws ScheduleException
*/
public DataToolsFile exportDynamicTTinfo(DTInfos dtInfos) throws ScheduleException;
}