| | |
| | | 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; |
| | | |
| | | /** |
| | | * 仿真数据实体类 |
| | |
| | | |
| | | @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; |
| | |
| | | return minx + "," + miny + "," + maxx + "," + maxy; |
| | | } |
| | | |
| | | public DataPo(String name, String inPath, String outPath, Double total, Integer duration, Integer isFlood) { |
| | | this.name = name; |
| | | this.inPath = inPath; |
| | | this.outPath = outPath; |
| | | this.total = total; |
| | | this.duration = duration; |
| | | this.isFlood = isFlood; |
| | | } |
| | | |
| | | public DataPo(String name, String inPath, String outPath, Double minx, Double miny, Double maxx, Double maxy, Double total, Integer duration) { |
| | | this.name = name; |
| | | this.inPath = inPath; |
| | |
| | | this.maxy = maxy; |
| | | this.total = total; |
| | | 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 boolean setFlood(Integer floodStart, Integer floodEnd, Double floodHeight, String floodType) { |
| | | this.isFlood = 1; |
| | | this.floodStart = floodStart; |
| | | this.floodEnd = floodEnd; |
| | | this.floodHeight = floodHeight; |
| | | this.floodType = floodType; |
| | | |
| | | return true; |
| | | } |
| | | |
| | | public boolean setFloodExtent(Double floodMinx, Double floodMiny, Double floodMaxx, Double floodMaxy) { |
| | | this.isFlood = 1; |
| | | this.floodMinx = floodMinx; |
| | | this.floodMiny = floodMiny; |
| | | this.floodMaxx = floodMaxx; |
| | | this.floodMaxy = floodMaxy; |
| | | |
| | | return true; |
| | | } |
| | | |
| | | public Integer getPid() { |
| | |
| | | this.outPath = outPath; |
| | | } |
| | | |
| | | public Date getStartTime() { |
| | | return startTime; |
| | | } |
| | | |
| | | public void setStartTime(Date startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public Double getMinx() { |
| | | return minx; |
| | | } |