| | |
| | | |
| | | import com.moon.server.helper.WebHelper; |
| | | |
| | | import java.io.DataOutput; |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 分析结果 |
| | |
| | | private static final long serialVersionUID = -1237623414044281355L; |
| | | |
| | | public AnalysisResultEntity() { |
| | | code = 200; |
| | | 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 int code; |
| | | |
| | | private String info; |
| | | |
| | | private List<Point> points; |
| | | |
| | | public String getLayerName() { |
| | | return layerName; |
| | |
| | | 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; |
| | | } |
| | | } |
| | | } |