| | |
| | | |
| | | private String landuse; |
| | | |
| | | private int station; |
| | | private Object station; |
| | | |
| | | private Integer kSt; |
| | | |
| | |
| | | |
| | | private Boolean variable_dt; |
| | | |
| | | private double evaporation; |
| | | |
| | | private ResultVo result; |
| | | |
| | | public ConfigVo() { |
| | |
| | | this.infiltration = "case1/landuse_to_infiltration.dat"; |
| | | this.dt = 0.1; |
| | | this.variable_dt = true; |
| | | this.evaporation = 0; |
| | | } |
| | | |
| | | public ConfigVo(String terrain, String landuse, String station, String raingage, String saveName, int duration, int frames) { |
| | | public ConfigVo(String terrain, String landuse, String station, |
| | | String raingage, String saveName, int duration, |
| | | int frames, String saveMode, String startTime) { |
| | | this(); |
| | | |
| | | // this.terrain.set(0, terrain.replace("\\", "/")); // 地形高程数据 |
| | |
| | | this.landuse = landuse; |
| | | this.raingage = Arrays.asList(raingage, "mm/min"); |
| | | this.duration = duration; |
| | | int saveInterval = duration / frames - 5; // 修订最后一帧可能为空数据 |
| | | this.result = new ResultVo(saveName, frames, saveInterval); |
| | | // int saveInterval = duration / frames - 5; // 修订最后一帧可能为空数据 |
| | | double saveInterval = (double)duration / frames; |
| | | this.result = new ResultVo(saveName, frames, saveInterval, saveMode, startTime); |
| | | } |
| | | |
| | | public String getTerrain() { |
| | |
| | | this.landuse = landuse; |
| | | } |
| | | |
| | | public int getStation() { |
| | | public Object getStation() { |
| | | return station; |
| | | } |
| | | |
| | | public void setStation(int station) { |
| | | public void setStation(Object station) { |
| | | this.station = station; |
| | | } |
| | | |
| | |
| | | public void setResult(ResultVo result) { |
| | | this.result = result; |
| | | } |
| | | |
| | | public double getEvaporation() { |
| | | return evaporation; |
| | | } |
| | | |
| | | public void setEvaporation(double evaporation) { |
| | | this.evaporation = evaporation; |
| | | } |
| | | } |