ExpectArrivalEnd.java
1.17 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
package com.bsth.data.match;
import com.bsth.entity.realcontrol.ScheduleRealInfo;
/**
*
* @ClassName: ExpectArrivalEnd
* @Description: TODO(期望车辆在某个时间段到达某个终点或 发出某个起点........)
* @author PanZhao
* @date 2016年11月2日 下午8:04:43
*
*/
public class ExpectArrivalEnd {
private String nbbm;
private String endStation;
private Long endTime;
public static ExpectArrivalEnd getEndInstance(ScheduleRealInfo sch, long t){
ExpectArrivalEnd ead = new ExpectArrivalEnd();
ead.setNbbm(sch.getClZbh());
ead.setEndStation(sch.getZdzCode());
if(sch.getBcType().equals("out"))
ead.setEndTime(sch.getZdsjT());
else{
ead.setEndTime(sch.getZdsjT() - (sch.getDfsjT() - t));
}
return ead;
}
public String getNbbm() {
return nbbm;
}
public void setNbbm(String nbbm) {
this.nbbm = nbbm;
}
public String getEndStation() {
return endStation;
}
public void setEndStation(String endStation) {
this.endStation = endStation;
}
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
}