wuww
2025-05-14 ddee792c3e8991a72990dbb485bde26bdb968c93
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
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 List<Object> landuse;
 
    private List<Object> station;
 
    private Integer kSt;
 
    private Integer initial_depth;
 
    private Integer initial_xmomentum;
 
    private Integer initial_ymomentum;
 
    private 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));
        // 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.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) {
        this();
 
        this.terrain.set(0, terrain.replace("\\", "/")); // 地形高程数据
        //this.landuse.set(0, landuse.replace("\\", "/")); // 土地利用类型
        this.station.set(0, station.replace("\\", "/")); // 雨量站索引
        this.raingage = raingage.replace("\\", "/");
        this.duration = duration;
 
        this.result = new ResultVo(saveName, duration, frames);
    }
 
    public List<Object> getTerrain() {
        return terrain;
    }
 
    public void setTerrain(List<Object> terrain) {
        this.terrain = terrain;
    }
 
    public List<Object> getLanduse() {
        return landuse;
    }
 
    public void setLanduse(List<Object> landuse) {
        this.landuse = landuse;
    }
 
    public List<Object> getStation() {
        return station;
    }
 
    public void setStation(List<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 String getRaingage() {
        return raingage;
    }
 
    public void setRaingage(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;
    }
}