1
13693261870
2024-09-30 b2b9e959447664bceb4381630358230a2ee5a1ab
src/main/java/com/se/simu/domain/po/DataPo.java
@@ -1,6 +1,10 @@
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;
/**
 * 仿真数据实体类
@@ -20,6 +24,11 @@
    @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;
@@ -82,15 +91,6 @@
        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;
@@ -101,35 +101,6 @@
        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() {
@@ -164,6 +135,14 @@
        this.outPath = outPath;
    }
    public Date getStartTime() {
        return startTime;
    }
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    public Double getMinx() {
        return minx;
    }