添加停止线测试数据

This commit is contained in:
liujing
2021-04-01 15:52:37 +08:00
parent 430b91d83c
commit 706fcca95c
2 changed files with 38 additions and 25 deletions

View File

@@ -1,6 +1,9 @@
package com.mogo.module.common.entity;
import com.mogo.map.MogoLatLng;
import java.io.Serializable;
import java.util.List;
/**
* @author liujing
@@ -28,8 +31,7 @@ public class V2XWarningEntity implements Serializable {
//速度
private float speed;
//停止线经纬度
private double stopLineLat;
private double stopLineLon;
private List<MogoLatLng> stopLines;
//自车到停止线距离
private double stopLineDistance;
//道路唯一标识
@@ -50,8 +52,8 @@ public class V2XWarningEntity implements Serializable {
public long systemTime;
//定位卫星时间 暂时没用
public long satelliteTime;
//莫顿码 暂时没用
public long mortonCode;
//预警蒙层等展示时长
private long showTime;
//自组字段
//tts播报
@@ -152,6 +154,15 @@ public class V2XWarningEntity implements Serializable {
this.speed = speed;
}
public void setStopLineDistance(double stopLineDistance) {
this.stopLineDistance = stopLineDistance;
}
public void setWarningContent(String warningContent) {
this.warningContent = warningContent;
}
public int getType() {
return type;
}
@@ -231,10 +242,6 @@ public class V2XWarningEntity implements Serializable {
return satelliteTime;
}
public long getMortonCode() {
return mortonCode;
}
public String getTts() {
if (tts == null) {
@@ -243,12 +250,8 @@ public class V2XWarningEntity implements Serializable {
return tts;
}
public double getStopLineLat() {
return stopLineLat;
}
public double getStopLineLon() {
return stopLineLon;
public double getStopLineDistance() {
return stopLineDistance;
}
@Override
@@ -257,26 +260,25 @@ public class V2XWarningEntity implements Serializable {
"type=" + type +
", lat=" + lat +
", lon=" + lon +
", targetColor='" + targetColor + '\'' +
", distance=" + distance +
", collisionLat=" + collisionLat +
", collisionLon=" + collisionLon +
", angle=" + angle +
", direction=" + direction +
", speed=" + speed +
", stopLineLat=" + stopLineLat +
", stopLineLon=" + stopLineLon +
", stopLineDistance=" + stopLineDistance +
", roadId='" + roadId + '\'' +
", laneId='" + laneId + '\'' +
", uuid='" + uuid + '\'' +
", color='" + color + '\'' +
", carId='" + carId + '\'' +
", warningContent='" + warningContent + '\'' +
", tts='" + tts + '\'' +
", location=" + location +
", heading=" + heading +
", systemTime=" + systemTime +
", satelliteTime=" + satelliteTime +
", mortonCode=" + mortonCode +
", tts='" + tts + '\'' +
", location=" + location +
'}';
}
}