Jay
2024-11-01 03e8aca3ad6201c0d74e00d4c8d7367cdaaa54f9
提交 | 用户 | 时间
ce910c 1 package com.netsdk.lib.structure;
H 2
3 import com.netsdk.lib.NetSDKLib;
4 import com.netsdk.lib.enumeration.EM_DETECT_SENSOR_TYPE;
5 import com.netsdk.lib.enumeration.EM_TRAFFIC_FLOW_STATUS;
6 import com.netsdk.lib.enumeration.EM_VIRTUAL_COIL_OCCUPANCY_STATUS;
7
8 /**
9  * @author : 47040
10  * @since : Created in 2020/12/17 11:38
11  */
12 public class NET_TRAFFIC_FLOW_STAT extends NetSDKLib.SdkStructure {
13     /**
14      * 物理车道号
15      */
16     public int nLane;
17     /**
18      * 自定义车道号
19      */
20     public int nRoadwayNumber;
21     /**
22      * 流量状态 枚举 {@link EM_TRAFFIC_FLOW_STATUS}
23      */
24     public int emStatus;
25     /**
26      * 车头虚拟线圈状态, 即车进线圈 枚举 {@link EM_VIRTUAL_COIL_OCCUPANCY_STATUS}
27      */
28     public int emHeadCoil;
29     /**
30      * 车尾虚拟线圈状态, 即车出线圈 枚举 {@link EM_VIRTUAL_COIL_OCCUPANCY_STATUS}
31      */
32     public int emTailCoil;
33     /**
34      * 车道平均速度(单位:km/h)
35      */
36     public int nSpeed;
37     /**
38      * 排队长度(单位:cm)
39      */
40     public int nQueueLen;
41     /**
42      * 排队车辆数
43      */
44     public int nCarsInQueue;
45     /**
46      * 探测物体的传感器类型 {@link EM_DETECT_SENSOR_TYPE}
47      */
48     public int emSensorType;
49     /**
50      * 车头间距,相邻车辆之间的距离,单位米/辆
51      */
52     public double dbSpaceHeadway;
53     /**
54      * 车头时距,单位秒/辆
55      */
56     public double dbTimeHeadWay;
57     /**
58      * 空间占有率,即按百分率计量的车辆长度总和除以时间间隔内车辆平均行驶距离
59      */
60     public double                    dbSpaceOccRatio;
61     /**
62      * 车道中的所有车辆的数量,即车流量
63      */
64     public  int                    nCarVehicles;
65
66     /**
67      * 保留字节
68      */
69     public byte[] byReserverd = new byte[228];
70
71     @Override
72     public String toString() {
73         return "NET_TRAFFIC_FLOW_STAT{" +
74                 "nLane=" + nLane +
75                 ", nRoadwayNumber=" + nRoadwayNumber +
76                 ", emStatus=" + emStatus +
77                 ", emHeadCoil=" + emHeadCoil +
78                 ", emTailCoil=" + emTailCoil +
79                 ", nSpeed=" + nSpeed +
80                 ", nQueueLen=" + nQueueLen +
81                 ", nCarsInQueue=" + nCarsInQueue +
82                 ", emSensorType=" + emSensorType +
83                 ", dbSpaceHeadway=" + dbSpaceHeadway +
84                 ", dbTimeHeadWay=" + dbTimeHeadWay +
85                 ", dbSpaceOccRatio=" + dbSpaceOccRatio +
86                 ", nCarVehicles=" + nCarVehicles +
87                 '}';
88     }
89 }