| | |
| | | package com.se.nsl.domain.vo; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | @SuppressWarnings("ALL") |
| | | public class ConfigVo { |
| | | private List<Object> terrain; |
| | | private String terrain; |
| | | |
| | | private List<Object> landuse; |
| | | private String landuse; |
| | | |
| | | private List<Object> station; |
| | | private Object station; |
| | | |
| | | private Integer kSt; |
| | | |
| | |
| | | |
| | | private Integer initial_ymomentum; |
| | | |
| | | private String raingage; |
| | | private List<String> raingage; |
| | | |
| | | private String infiltration; |
| | | |
| | |
| | | private ResultVo result; |
| | | |
| | | public ConfigVo() { |
| | | this.terrain = new ArrayList<Object>(Arrays.asList("case1/LiuLiMiaoZhen_5m_f32.tif", 1)); |
| | | // this.terrain = new ArrayList<Object>(Arrays.asList("case1/LiuLiMiaoZhen_5m_f32.tif")); |
| | | // 1-Cropland,2-Forest,3-Shrub,4-Grassland,5-Water,6-Snow/Ice,7-Barren,8-Impervious,9-Wetland |
| | | this.landuse = new ArrayList<Object>(Arrays.asList("case1/LiuLiMiaoZhen_5m_landuse_grassland.tif", 1)); |
| | | this.station = new ArrayList<Object>(Arrays.asList("case1/LiuLiMiaoZhen_5m_station.tif", 1)); |
| | | |
| | | // this.landuse = new ArrayList<Object>(Arrays.asList("case1/LiuLiMiaoZhen_5m_landuse_grassland.tif")); |
| | | // this.station = new ArrayList<Object>(Arrays.asList("case1/LiuLiMiaoZhen_5m_station.tif", 1)); |
| | | this.station = 0; |
| | | this.kSt = 40; |
| | | this.initial_depth = 0; |
| | | this.initial_xmomentum = 0; |
| | |
| | | this.variable_dt = true; |
| | | } |
| | | |
| | | 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.set(0, landuse.replace("\\", "/")); // 土地利用类型 |
| | | this.station.set(0, station.replace("\\", "/")); // 雨量站索引 |
| | | this.raingage = raingage.replace("\\", "/"); |
| | | // this.terrain.set(0, terrain.replace("\\", "/")); // 地形高程数据 |
| | | // this.landuse.set(0, landuse.replace("\\", "/")); // 土地利用类型 |
| | | // this.station.set(0, station.replace("\\", "/")); // 雨量站索引 |
| | | // this.raingage = raingage.replace("\\", "/"); |
| | | this.terrain = terrain; |
| | | 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); |
| | | this.result = new ResultVo(saveName, frames, saveInterval, saveMode, startTime); |
| | | } |
| | | |
| | | public List<Object> getTerrain() { |
| | | public String getTerrain() { |
| | | return terrain; |
| | | } |
| | | |
| | | public void setTerrain(List<Object> terrain) { |
| | | public void setTerrain(String terrain) { |
| | | this.terrain = terrain; |
| | | } |
| | | |
| | | public List<Object> getLanduse() { |
| | | public String getLanduse() { |
| | | return landuse; |
| | | } |
| | | |
| | | public void setLanduse(List<Object> landuse) { |
| | | public void setLanduse(String landuse) { |
| | | this.landuse = landuse; |
| | | } |
| | | |
| | | public List<Object> getStation() { |
| | | public Object getStation() { |
| | | return station; |
| | | } |
| | | |
| | | public void setStation(List<Object> station) { |
| | | public void setStation(Object station) { |
| | | this.station = station; |
| | | } |
| | | |
| | |
| | | this.initial_ymomentum = initial_ymomentum; |
| | | } |
| | | |
| | | public String getRaingage() { |
| | | public List<String> getRaingage() { |
| | | return raingage; |
| | | } |
| | | |
| | | public void setRaingage(String raingage) { |
| | | public void setRaingage(List<String> raingage) { |
| | | this.raingage = raingage; |
| | | } |
| | | |