月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-11 fee67ca8a0760315047a52fc4101a8f4f80b7a7f
src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java
@@ -6,11 +6,7 @@
import java.util.ArrayList;
import java.util.List;
/**
 * 分析结果
 * @author WWW
 * @date 2023-09-11
 */
@SuppressWarnings("ALL")
public class AnalysisResultEntity implements Serializable {
    private static final long serialVersionUID = -1237623414044281355L;
@@ -22,11 +18,16 @@
        this.points = new ArrayList<>();
    }
    public AnalysisResultEntity(String token) {
        this();
        this.token = token;
    }
    /**
     * 添加点
     */
    public void addPoint(Double x, Double y, List<Double> vals) {
        Point point = new Point(x, y, vals);
    public void addPoint(double x, double y, double len, List<Double> vals) {
        Point point = new Point(x, y, len, vals);
        this.points.add(point);
    }
@@ -38,6 +39,8 @@
        this.avgList.add(WebHelper.round(avg, 3));
        this.maxList.add(WebHelper.round(max, 3));
    }
    private String token;
    private String layerName;
@@ -51,7 +54,17 @@
    private String info;
    private String unit;
    private List<Point> points;
    public String getToken() {
        return token;
    }
    public void setToken(String token) {
        this.token = token;
    }
    public String getLayerName() {
        return layerName;
@@ -101,6 +114,14 @@
        this.info = info;
    }
    public String getUnit() {
        return unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
    }
    public List<Point> getPoints() {
        return points;
    }
@@ -110,37 +131,48 @@
    }
    public static class Point {
        private Double x;
        private double x;
        private Double y;
        private double y;
        private double len;
        private List<Double> vals;
        public Point() {
        }
        public Point(Double x, Double y, List<Double> vals) {
        public Point(double x, double y, double len, List<Double> vals) {
            this.x = x;
            this.y = y;
            this.len = WebHelper.round(len, 3);
            this.vals = vals;
        }
        public Double getX() {
        public double getX() {
            return x;
        }
        public void setX(Double x) {
        public void setX(double x) {
            this.x = x;
        }
        public Double getY() {
        public double getY() {
            return y;
        }
        public void setY(Double y) {
        public void setY(double y) {
            this.y = y;
        }
        public double getLen() {
            return len;
        }
        public void setLen(double len) {
            this.len = len;
        }
        public List<Double> getVals() {
            return vals;
        }