| | |
| | | package com.se.simu.domain.po; |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 仿真数据实体类 |
| | |
| | | * @date 2024-09-18 |
| | | */ |
| | | public class DataPo { |
| | | @ApiModelProperty("父ID") |
| | | private Integer pid; |
| | | |
| | | @ApiModelProperty("名称") |
| | | private String name; |
| | | |
| | |
| | | |
| | | @ApiModelProperty("输出路径") |
| | | private String outPath; |
| | | |
| | | @ApiModelProperty("开始时间") |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date startTime; |
| | | |
| | | @ApiModelProperty("最小X") |
| | | private Double minx; |
| | |
| | | @ApiModelProperty("防汛结束时间(秒)") |
| | | private Integer floodEnd; |
| | | |
| | | @ApiModelProperty("防汛范围(minx,miny,maxx,maxy)") |
| | | private String floodBbox; |
| | | |
| | | @ApiModelProperty("防汛高度(mm)") |
| | | private Double floodHeight; |
| | | |
| | | @ApiModelProperty("防汛类型(沙袋,防水板)") |
| | | private String floodType; |
| | | |
| | | @ApiModelProperty("防汛最小X") |
| | | private Double floodMinx; |
| | | |
| | | @ApiModelProperty("防汛最小Y") |
| | | private Double floodMiny; |
| | | |
| | | @ApiModelProperty("防汛最大X") |
| | | private Double floodMaxx; |
| | | |
| | | @ApiModelProperty("防汛最大Y") |
| | | private Double floodMaxy; |
| | | |
| | | @ApiModelProperty("坐标系ID") |
| | | private Integer epsg; |
| | | |
| | | public DataPo() { |
| | | } |
| | | |
| | | public DataPo(String name, String inPath, String outPath, Double total, Integer duration, Integer isFlood) { |
| | | this.name = name; |
| | | public void setPath(String inPath, String outPath) { |
| | | this.inPath = inPath; |
| | | this.outPath = outPath; |
| | | this.total = total; |
| | | this.duration = duration; |
| | | this.isFlood = isFlood; |
| | | } |
| | | |
| | | public String getBbox() { |
| | | // "116.64388473935195,39.884315914604464,116.64754729082588,39.887069143903496"; |
| | | return minx + "," + miny + "," + maxx + "," + maxy; |
| | | } |
| | | |
| | | public DataPo(String name, String inPath, String outPath, Double minx, Double miny, Double maxx, Double maxy, Double total, Integer duration) { |
| | |
| | | this.duration = duration; |
| | | } |
| | | |
| | | public boolean setExtent(Double minx, Double miny, Double maxx, Double maxy) { |
| | | this.minx = minx; |
| | | this.miny = miny; |
| | | this.maxx = maxx; |
| | | this.maxy = maxy; |
| | | |
| | | return true; |
| | | public Integer getPid() { |
| | | return pid; |
| | | } |
| | | |
| | | public DataPo(Integer floodStart, Integer floodEnd, Double minx, Double miny, Double maxx, Double maxy, Double floodHeight, String floodType) { |
| | | this.isFlood = 1; |
| | | this.floodStart = floodStart; |
| | | this.floodEnd = floodEnd; |
| | | this.floodBbox = minx + "," + miny + "," + maxx + "," + maxy; |
| | | this.floodHeight = floodHeight; |
| | | this.floodType = floodType; |
| | | } |
| | | |
| | | public boolean setFloodExtent(Double minx, Double miny, Double maxx, Double maxy) { |
| | | this.isFlood = 1; |
| | | this.floodBbox = minx + "," + miny + "," + maxx + "," + maxy; |
| | | |
| | | return true; |
| | | public void setPid(Integer pid) { |
| | | this.pid = pid; |
| | | } |
| | | |
| | | public String getName() { |
| | |
| | | |
| | | public void setOutPath(String outPath) { |
| | | this.outPath = outPath; |
| | | } |
| | | |
| | | public Date getStartTime() { |
| | | return startTime; |
| | | } |
| | | |
| | | public void setStartTime(Date startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public Double getMinx() { |
| | |
| | | this.floodEnd = floodEnd; |
| | | } |
| | | |
| | | public String getFloodBbox() { |
| | | return floodBbox; |
| | | } |
| | | |
| | | public void setFloodBbox(String floodBbox) { |
| | | this.floodBbox = floodBbox; |
| | | } |
| | | |
| | | public Double getFloodHeight() { |
| | | return floodHeight; |
| | | } |
| | |
| | | public void setFloodType(String floodType) { |
| | | this.floodType = floodType; |
| | | } |
| | | |
| | | public Double getFloodMinx() { |
| | | return floodMinx; |
| | | } |
| | | |
| | | public void setFloodMinx(Double floodMinx) { |
| | | this.floodMinx = floodMinx; |
| | | } |
| | | |
| | | public Double getFloodMiny() { |
| | | return floodMiny; |
| | | } |
| | | |
| | | public void setFloodMiny(Double floodMiny) { |
| | | this.floodMiny = floodMiny; |
| | | } |
| | | |
| | | public Double getFloodMaxx() { |
| | | return floodMaxx; |
| | | } |
| | | |
| | | public void setFloodMaxx(Double floodMaxx) { |
| | | this.floodMaxx = floodMaxx; |
| | | } |
| | | |
| | | public Double getFloodMaxy() { |
| | | return floodMaxy; |
| | | } |
| | | |
| | | public void setFloodMaxy(Double floodMaxy) { |
| | | this.floodMaxy = floodMaxy; |
| | | } |
| | | |
| | | public Integer getEpsg() { |
| | | return epsg; |
| | | } |
| | | |
| | | public void setEpsg(Integer epsg) { |
| | | this.epsg = epsg; |
| | | } |
| | | } |