Commit dc2df39a authored by zhoushiguang's avatar zhoushiguang

灯态数据流

parent a88388f4
......@@ -110,7 +110,8 @@ public class LaneCarHeadTimeProcessFunction extends KeyedProcessFunction<String,
Integer agoGreenTime = greenRemainTimeState.get(key);
//绿灯区间计算
if (agoCar != null && agoGreenTime != null) {
if (agoGreenTime > 0){//有绿灯时长时监测是否有后车
//有绿灯时长时监测是否有后车
if (agoGreenTime > 0){
Integer agoTrackId = agoCar.getId();
Integer trackId = lastCar.getId();
//新的车辆驶出停止线
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment