DC0_A3.java
4.33 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
package com.bsth.entity.directive;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
*
* @ClassName: DC0_A4
* @Description: TODO(设备参数)
* @author PanZhao
* @date 2016年10月18日 下午5:22:36
*
*/
@Entity
@Table(name = "bsth_v_C0_A3")
public class DC0_A3 extends Directive{
@Id
@GeneratedValue
private Integer id;
private DC0_A3Data data;
@Embeddable
public static class DC0_A3Data {
/**
* 二级协议
*/
private Short operCode2 = 0xA3;
/** 设备编号 */
@Transient
private String deviceId;
/** 网关IP地址 */
private String ipAddress;
/** 网关端口 */
private int port;
/** 定时定距上报模式 */
private short reportMode;
/** 定时上报时间间隔 */
private int interval;
/** 定距上报距离间隔 */
private String distance;
/** 非线路状态超速阀门 */
private short speedingThreshold;
/** 预警阀门 */
private short alarmThreshold;
/** pos机IP地址 */
private String posIpAddress;
/** pos机端口 */
private String posPort;
/** 延迟机关时间 */
private int delay;
/** 中门视频切换到码表界面速度阀门 默认45 */
private short speedThreshold1;
/** 码表界面切换到中门视频速度阀门 默认35 */
private short speedThreshold2;
/** 对比度 */
private short contrast;
/** 亮度 */
private short brightness;
/** 饱和度 */
private short saturation;
public Short getOperCode2() {
return operCode2;
}
public void setOperCode2(Short operCode2) {
this.operCode2 = operCode2;
}
public String getDeviceId() {
return deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public short getReportMode() {
return reportMode;
}
public void setReportMode(short reportMode) {
this.reportMode = reportMode;
}
public int getInterval() {
return interval;
}
public void setInterval(int interval) {
this.interval = interval;
}
public String getDistance() {
return distance;
}
public void setDistance(String distance) {
this.distance = distance;
}
public short getSpeedingThreshold() {
return speedingThreshold;
}
public void setSpeedingThreshold(short speedingThreshold) {
this.speedingThreshold = speedingThreshold;
}
public short getAlarmThreshold() {
return alarmThreshold;
}
public void setAlarmThreshold(short alarmThreshold) {
this.alarmThreshold = alarmThreshold;
}
public String getPosIpAddress() {
return posIpAddress;
}
public void setPosIpAddress(String posIpAddress) {
this.posIpAddress = posIpAddress;
}
public String getPosPort() {
return posPort;
}
public void setPosPort(String posPort) {
this.posPort = posPort;
}
public int getDelay() {
return delay;
}
public void setDelay(int delay) {
this.delay = delay;
}
public short getSpeedThreshold1() {
return speedThreshold1;
}
public void setSpeedThreshold1(short speedThreshold1) {
this.speedThreshold1 = speedThreshold1;
}
public short getSpeedThreshold2() {
return speedThreshold2;
}
public void setSpeedThreshold2(short speedThreshold2) {
this.speedThreshold2 = speedThreshold2;
}
public short getContrast() {
return contrast;
}
public void setContrast(short contrast) {
this.contrast = contrast;
}
public short getBrightness() {
return brightness;
}
public void setBrightness(short brightness) {
this.brightness = brightness;
}
public short getSaturation() {
return saturation;
}
public void setSaturation(short saturation) {
this.saturation = saturation;
}
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public DC0_A3Data getData() {
return data;
}
public void setData(DC0_A3Data data) {
this.data = data;
}
}