月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-13 d475b695564c548b0980c8c0d0d2428a2a7b112e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
package com.moon.server.entity.data;
 
import com.moon.server.helper.WebHelper;
 
import java.io.DataOutput;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
/**
 * 分析结果
 * @author WWW
 * @date 2023-09-11
 */
public class AnalysisResultEntity implements Serializable {
    private static final long serialVersionUID = -1237623414044281355L;
 
    public AnalysisResultEntity() {
        this.code = 200;
        this.points = new ArrayList<>();
    }
 
    /**
     * 添加点
     */
    public void addPoint(Double x, Double y, Double val) {
        Point point = new Point(x, y, val);
        this.points.add(point);
    }
 
    private String layerName;
 
    private Double min;
 
    private Double avg;
 
    private Double max;
 
    private int code;
 
    private String info;
 
    private List<Point> points;
 
    public String getLayerName() {
        return layerName;
    }
 
    public void setLayerName(String layerName) {
        this.layerName = layerName;
    }
 
    public Double getMin() {
        return min;
    }
 
    public void setMin(Double min) {
        this.min = WebHelper.round(min, 3);
    }
 
    public Double getAvg() {
        return avg;
    }
 
    public void setAvg(Double avg) {
        this.avg = WebHelper.round(avg, 3);
    }
 
    public Double getMax() {
        return max;
    }
 
    public void setMax(Double max) {
        this.max = WebHelper.round(max, 3);
    }
 
    public int getCode() {
        return code;
    }
 
    public void setCode(int code) {
        this.code = code;
    }
 
    public String getInfo() {
        return info;
    }
 
    public void setInfo(String info) {
        this.info = info;
    }
 
    public class Point {
        private Double x;
 
        private Double y;
 
        private Double val;
 
        public Point() {
        }
 
        public Point(Double x, Double y, Double val) {
            this.x = x;
            this.y = y;
            this.val = val;
        }
 
        public Double getX() {
            return x;
        }
 
        public void setX(Double x) {
            this.x = x;
        }
 
        public Double getY() {
            return y;
        }
 
        public void setY(Double y) {
            this.y = y;
        }
 
        public Double getVal() {
            return val;
        }
 
        public void setVal(Double val) {
            this.val = val;
        }
    }
}