提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
|
|
4 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
5 |
|
|
6 |
import java.io.UnsupportedEncodingException; |
|
7 |
|
|
8 |
/** |
|
9 |
* @author : 260611 |
|
10 |
* @description : 交通路口停车事件 (对应 DH_ALARM_TRAFFIC_FLOW_VEHICLE_STOP) |
|
11 |
* @since : Created in 2022/03/10 10:12 |
|
12 |
*/ |
|
13 |
|
|
14 |
public class ALARM_TRAFFIC_FLOW_VEHICLE_STOP_INFO extends NetSDKLib.SdkStructure { |
|
15 |
/** |
|
16 |
* 事件动作 0:脉冲 |
|
17 |
*/ |
|
18 |
public int nAction; |
|
19 |
/** |
|
20 |
* 通道号 |
|
21 |
*/ |
|
22 |
public int nChannel; |
|
23 |
/** |
|
24 |
* 事件名称 |
|
25 |
*/ |
|
26 |
public byte[] szName = new byte[128]; |
|
27 |
/** |
|
28 |
* 事件发生的时间 |
|
29 |
*/ |
|
30 |
public NET_TIME_EX stuUTC = new NET_TIME_EX(); |
|
31 |
/** |
|
32 |
* 事件时间毫秒数 |
|
33 |
*/ |
|
34 |
public int nUTCMS; |
|
35 |
/** |
|
36 |
* 表示抓拍序号 1表示抓拍正常结束 0表示抓拍异常结束 |
|
37 |
*/ |
|
38 |
public int nSequence; |
|
39 |
/** |
|
40 |
* 区域路口停车信息 |
|
41 |
*/ |
|
42 |
public TRAFFIC_FLOW_VEHICLE_STOP_INFO stuFlowVehicleStop = new TRAFFIC_FLOW_VEHICLE_STOP_INFO(); |
|
43 |
/** |
|
44 |
* 保留字节 |
|
45 |
*/ |
|
46 |
public byte[] szReserverd = new byte[1024]; |
|
47 |
|
|
48 |
@Override |
|
49 |
public String toString() { |
|
50 |
try { |
|
51 |
return "ALARM_TRAFFIC_FLOW_VEHICLE_STOP_INFO{" + |
|
52 |
"nAction=" + nAction + |
|
53 |
", nChannel=" + nChannel + |
|
54 |
", szName UTF-8=" + new String(szName,"UTF-8").trim() + |
|
55 |
", szName GBK=" + new String(szName,"GBK").trim() + |
|
56 |
", stuUTC=" + stuUTC.toStringTime() + |
|
57 |
", nUTCMS=" + nUTCMS + |
|
58 |
", nSequence=" + nSequence + |
|
59 |
", stuFlowVehicleStop=" + stuFlowVehicleStop.toString() + |
|
60 |
'}'; |
|
61 |
} catch (UnsupportedEncodingException e) { |
|
62 |
e.printStackTrace(); |
|
63 |
} |
|
64 |
return null; |
|
65 |
} |
|
66 |
} |