月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-11 fee67ca8a0760315047a52fc4101a8f4f80b7a7f
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
package com.moon.server.entity.data;
 
import com.moon.server.helper.WebHelper;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
@SuppressWarnings("ALL")
public class AnalysisResultEntity implements Serializable {
    private static final long serialVersionUID = -1237623414044281355L;
 
    public AnalysisResultEntity() {
        this.code = 200;
        this.minList = new ArrayList<>();
        this.avgList = new ArrayList<>();
        this.maxList = new ArrayList<>();
        this.points = new ArrayList<>();
    }
 
    public AnalysisResultEntity(String token) {
        this();
        this.token = token;
    }
 
    /**
     * 添加点
     */
    public void addPoint(double x, double y, double len, List<Double> vals) {
        Point point = new Point(x, y, len, vals);
        this.points.add(point);
    }
 
    /**
     * 添加Band值
     */
    public void addBandVals(double min, double avg, double max) {
        this.minList.add(WebHelper.round(min, 3));
        this.avgList.add(WebHelper.round(avg, 3));
        this.maxList.add(WebHelper.round(max, 3));
    }
 
    private String token;
 
    private String layerName;
 
    private List<Double> minList;
 
    private List<Double> avgList;
 
    private List<Double> maxList;
 
    private int code;
 
    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;
    }
 
    public void setLayerName(String layerName) {
        this.layerName = layerName;
    }
 
    public List<Double> getMinList() {
        return minList;
    }
 
    public void setMinList(List<Double> minList) {
        this.minList = minList;
    }
 
    public List<Double> getAvgList() {
        return avgList;
    }
 
    public void setAvgList(List<Double> avgList) {
        this.avgList = avgList;
    }
 
    public List<Double> getMaxList() {
        return maxList;
    }
 
    public void setMaxList(List<Double> maxList) {
        this.maxList = maxList;
    }
 
    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 String getUnit() {
        return unit;
    }
 
    public void setUnit(String unit) {
        this.unit = unit;
    }
 
    public List<Point> getPoints() {
        return points;
    }
 
    public void setPoints(List<Point> points) {
        this.points = points;
    }
 
    public static class Point {
        private double x;
 
        private double y;
 
        private double len;
 
        private List<Double> vals;
 
        public Point() {
        }
 
        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() {
            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 getLen() {
            return len;
        }
 
        public void setLen(double len) {
            this.len = len;
        }
 
        public List<Double> getVals() {
            return vals;
        }
 
        public void setVals(List<Double> vals) {
            this.vals = vals;
        }
    }
}