SafeDriv.java
2.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
package com.bsth.data.safe_driv;
/**
* 安全驾驶
* Created by panzhao on 2017/4/6.
*/
public class SafeDriv {
/**
* 时间
* 2017-04-06 08:00:00.0
*/
private String Startime;
/**
* 时间戳
*/
private Long ts;
/**
* 设备编号
*/
private String sbbh;
/**
* 线路名称
*/
private String xlmc;
private String xlbm;
/**
* 车辆自编号
*/
private String clzbh;
/**
* 车牌号
*/
private String cph;
/**
* 检查属性
* 双脱手 0 单脱手 1 其他为0都是异常
*/
private String jctype;
/**
* 异常种类
* 手部检测: 1
* 脸部检测: 5
* 摄像头检测: 2
* 安全带检测: 3
* 袖章检测: 4
*/
private String yczltype;
@Override
public int hashCode() {
return ("safe_" + (this.getClzbh() + this.getStartime())).hashCode();
}
@Override
public boolean equals(Object obj) {
SafeDriv s2 = (SafeDriv)obj;
return (this.getClzbh() + this.getStartime()).equals(s2.getClzbh() + s2.getStartime());
}
public String getStartime() {
return Startime;
}
public void setStartime(String startime) {
Startime = startime;
}
public String getSbbh() {
return sbbh;
}
public void setSbbh(String sbbh) {
this.sbbh = sbbh;
}
public String getXlmc() {
return xlmc;
}
public void setXlmc(String xlmc) {
this.xlmc = xlmc;
}
public String getClzbh() {
return clzbh;
}
public void setClzbh(String clzbh) {
this.clzbh = clzbh;
}
public String getCph() {
return cph;
}
public void setCph(String cph) {
this.cph = cph;
}
public String getJctype() {
return jctype;
}
public void setJctype(String jctype) {
this.jctype = jctype;
}
public String getYczltype() {
return yczltype;
}
public void setYczltype(String yczltype) {
this.yczltype = yczltype;
}
public Long getTs() {
return ts;
}
public void setTs(Long ts) {
this.ts = ts;
}
public String getXlbm() {
return xlbm;
}
public void setXlbm(String xlbm) {
this.xlbm = xlbm;
}
}