RealTimeGps.java
3.38 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
package com.bsth.entity;
import java.io.Serializable;
public class RealTimeGps implements Serializable {
private static final long serialVersionUID = -8996943161741177815L;
private int companyCode;
private int lineId;
private String deviceId;
private String carparkNo;
private String stopNo;
private float lon;
private float lat;
private long timestamp;
private float speed;
private float direction;
// 营运状态
private byte state = (byte)-1;
// 上下行 -1无效 0上行 1下行
private byte upDown;
// 站内外 -1无效 0站外 1站内
private byte inOrOutStation;
// 场内外 -1无效 0场外 1场内
private byte inOrOutCarpark;
// 车辆内部编码
private String vehicle;
private byte valid = (byte)0;
// 版本号
private short version;
private String insideCode;
private long serverTimestamp;
private String sectionCode;
public String getSectionCode() {
return sectionCode;
}
public void setSectionCode(String sectionCode) {
this.sectionCode = sectionCode;
}
public short getVersion() {
return version;
}
public void setVersion(short version) {
this.version = version;
}
public long getServerTimestamp() {
return serverTimestamp;
}
public void setServerTimestamp(long serverTimestamp) {
this.serverTimestamp = serverTimestamp;
}
public byte getValid() {
return valid;
}
public void setValid(byte valid) {
this.valid = valid;
}
public String getVehicle() {
return vehicle;
}
public void setVehicle(String vehicle) {
this.vehicle = vehicle;
}
public byte getInOrOutStation() {
return inOrOutStation;
}
public void setInOrOutStation(byte inOrOutStation) {
this.inOrOutStation = inOrOutStation;
}
public byte getInOrOutCarpark() {
return inOrOutCarpark;
}
public void setInOrOutCarpark(byte inOrOutCarpark) {
this.inOrOutCarpark = inOrOutCarpark;
}
public int getCompanyCode() {
return companyCode;
}
public void setCompanyCode(int companyCode) {
this.companyCode = companyCode;
}
public int getLineId() {
return lineId;
}
public void setLineId(int lineId) {
this.lineId = lineId;
}
public String getDeviceId() {
return deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getCarparkNo() {
return carparkNo;
}
public void setCarparkNo(String carparkNo) {
this.carparkNo = carparkNo;
}
public String getStopNo() {
return stopNo;
}
public void setStopNo(String stopNo) {
this.stopNo = stopNo;
}
public float getLon() {
return lon;
}
public void setLon(float lon) {
this.lon = lon;
}
public float getLat() {
return lat;
}
public void setLat(float lat) {
this.lat = lat;
}
public long getTimestamp() {
return timestamp;
}
public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}
public float getSpeed() {
return speed;
}
public void setSpeed(float speed) {
this.speed = speed;
}
public float getDirection() {
return direction;
}
public void setDirection(float direction) {
this.direction = direction;
}
public byte getState() {
return state;
}
public void setState(byte state) {
this.state = state;
}
public byte getUpDown() {
return upDown;
}
public void setUpDown(byte upDown) {
this.upDown = upDown;
}
public String getInsideCode() {
return insideCode;
}
public void setInsideCode(String insideCode) {
this.insideCode = insideCode;
}
}