dcb
2025-06-18 4c4d0f591f94428ed7e5d2f4ae5df5c5087d8c26
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
package com.se.nsl.domain.vo;
 
import java.util.Arrays;
import java.util.List;
 
@SuppressWarnings("ALL")
public class ConfigVo {
    private String terrain;
 
    private String landuse;
 
    private Object station;
 
    private Integer kSt;
 
    private Integer initial_depth;
 
    private Integer initial_xmomentum;
 
    private Integer initial_ymomentum;
 
    private List<String> raingage;
 
    private String infiltration;
 
    private Integer duration;
 
    private Double dt;
 
    private Boolean variable_dt;
 
    private ResultVo result;
 
    public ConfigVo() {
//        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"));
//        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.initial_ymomentum = 0;
        this.infiltration = "case1/landuse_to_infiltration.dat";
        this.dt = 0.1;
        this.variable_dt = true;
    }
 
    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 = 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, saveMode, startTime);
    }
 
    public String getTerrain() {
        return terrain;
    }
 
    public void setTerrain(String terrain) {
        this.terrain = terrain;
    }
 
    public String getLanduse() {
        return landuse;
    }
 
    public void setLanduse(String landuse) {
        this.landuse = landuse;
    }
 
    public Object getStation() {
        return station;
    }
 
    public void setStation(Object station) {
        this.station = station;
    }
 
    public Integer getkSt() {
        return kSt;
    }
 
    public void setkSt(Integer kSt) {
        this.kSt = kSt;
    }
 
    public Integer getInitial_depth() {
        return initial_depth;
    }
 
    public void setInitial_depth(Integer initial_depth) {
        this.initial_depth = initial_depth;
    }
 
    public Integer getInitial_xmomentum() {
        return initial_xmomentum;
    }
 
    public void setInitial_xmomentum(Integer initial_xmomentum) {
        this.initial_xmomentum = initial_xmomentum;
    }
 
    public Integer getInitial_ymomentum() {
        return initial_ymomentum;
    }
 
    public void setInitial_ymomentum(Integer initial_ymomentum) {
        this.initial_ymomentum = initial_ymomentum;
    }
 
    public List<String> getRaingage() {
        return raingage;
    }
 
    public void setRaingage(List<String> raingage) {
        this.raingage = raingage;
    }
 
    public String getInfiltration() {
        return infiltration;
    }
 
    public void setInfiltration(String infiltration) {
        this.infiltration = infiltration;
    }
 
    public Integer getDuration() {
        return duration;
    }
 
    public void setDuration(Integer duration) {
        this.duration = duration;
    }
 
    public Double getDt() {
        return dt;
    }
 
    public void setDt(Double dt) {
        this.dt = dt;
    }
 
    public Boolean getVariable_dt() {
        return variable_dt;
    }
 
    public void setVariable_dt(Boolean variable_dt) {
        this.variable_dt = variable_dt;
    }
 
    public ResultVo getResult() {
        return result;
    }
 
    public void setResult(ResultVo result) {
        this.result = result;
    }
}