LineInfo.java
4.59 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
package com.bsth.entity;
import java.util.ArrayList;
import java.util.List;
/**
* @author Hill
*/
public class LineInfo {
private final static double SPEEDING_LIMIT = 60;
private int id;
private int lineId;
private String lineName;
private int startStation;
private String startStationName;
private String startStationFirstTime;
private String startStationEndTime;
private int endStation;
private String endStationName;
private String endStationFirstTime;
private String endStationEndTime;
private String company;
private String brancheCompany;
private double length;
private String telephone;
private double speedLimit;
private int linePlayType;
private int inUse;
// 上行分段路段
private List<SectionInfo> sectionsUp = new ArrayList<SectionInfo>();
// 下行分段路段
private List<SectionInfo> sectionsDown = new ArrayList<SectionInfo>();
// 上行站点
private List<StopInfo> stopsUp = new ArrayList<StopInfo>();
// 下行站点
private List<StopInfo> stopsDown = new ArrayList<StopInfo>();
// 回环站点
private List<SpecialStation> specailStation = new ArrayList<SpecialStation>();
public double getSpeedLimit() {
if (speedLimit > 0) return speedLimit;
else return SPEEDING_LIMIT;
}
public void setSpeedLimit(double speedLimit) {
this.speedLimit = speedLimit;
}
public List<SectionInfo> getSectionsUp() {
return sectionsUp;
}
public void setSectionsUp(List<SectionInfo> sectionsUp) {
this.sectionsUp = sectionsUp;
}
public List<SectionInfo> getSectionsDown() {
return sectionsDown;
}
public void setSectionsDown(List<SectionInfo> sectionsDown) {
this.sectionsDown = sectionsDown;
}
public List<StopInfo> getStopsUp() {
return stopsUp;
}
public void setStopsUp(List<StopInfo> stopsUp) {
this.stopsUp = stopsUp;
}
public List<StopInfo> getStopsDown() {
return stopsDown;
}
public void setStopsDown(List<StopInfo> stopsDown) {
this.stopsDown = stopsDown;
}
public List<SpecialStation> getSpecailStation() {
return specailStation;
}
public void setSpecailStation(List<SpecialStation> specailStation) {
this.specailStation = specailStation;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getLineId() {
return lineId;
}
public void setLineId(int lineId) {
this.lineId = lineId;
}
public String getLineName() {
return lineName;
}
public void setLineName(String lineName) {
this.lineName = lineName;
}
public int getStartStation() {
return startStation;
}
public void setStartStation(int startStation) {
this.startStation = startStation;
}
public String getStartStationName() {
return startStationName;
}
public void setStartStationName(String startStationName) {
this.startStationName = startStationName;
}
public String getStartStationFirstTime() {
return startStationFirstTime;
}
public void setStartStationFirstTime(String startStationFirstTime) {
this.startStationFirstTime = startStationFirstTime;
}
public String getStartStationEndTime() {
return startStationEndTime;
}
public void setStartStationEndTime(String startStationEndTime) {
this.startStationEndTime = startStationEndTime;
}
public int getEndStation() {
return endStation;
}
public void setEndStation(int endStation) {
this.endStation = endStation;
}
public String getEndStationName() {
return endStationName;
}
public void setEndStationName(String endStationName) {
this.endStationName = endStationName;
}
public String getEndStationFirstTime() {
return endStationFirstTime;
}
public void setEndStationFirstTime(String endStationFirstTime) {
this.endStationFirstTime = endStationFirstTime;
}
public String getEndStationEndTime() {
return endStationEndTime;
}
public void setEndStationEndTime(String endStationEndTime) {
this.endStationEndTime = endStationEndTime;
}
public String getCompany() {
return company;
}
public void setCompany(String company) {
this.company = company;
}
public String getBrancheCompany() {
return brancheCompany;
}
public void setBrancheCompany(String brancheCompany) {
this.brancheCompany = brancheCompany;
}
public double getLength() {
return length;
}
public void setLength(double length) {
this.length = length;
}
public String getTelephone() {
return telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
public int getLinePlayType() {
return linePlayType;
}
public void setLinePlayType(int linePlayType) {
this.linePlayType = linePlayType;
}
public int getInUse() {
return inUse;
}
public void setInUse(int inUse) {
this.inUse = inUse;
}
}