1
13693261870
2024-09-30 60494b2aa2d720a98c421dc732ca2636b273e10c
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
package com.se.simu.domain.dto;
 
import cn.hutool.core.io.FileUtil;
 
import java.io.File;
import java.util.Dictionary;
import java.util.HashMap;
import java.util.Map;
 
/**
 * 结果实体类
 *
 * @author WWW
 * @date 2024-09-30
 */
public class ResultDto {
    private String serviceName;
 
    private String terrainFile;
 
    private String buildingFile;
 
    private String waterPath;
 
    private String flowPath;
 
    private String outPath;
 
    private String temp;
 
    private Map<String, float[]> buildings;
 
    public ResultDto() {
        this.buildings = new HashMap<>();
    }
 
    public ResultDto(String serviceName, String terrainFile, String buildingFile, String waterPath, String flowPath, String outPath, String temp) {
        this();
        this.serviceName = serviceName;
        this.terrainFile = terrainFile;
        this.buildingFile = buildingFile;
        this.waterPath = waterPath;
        this.flowPath = flowPath;
        this.outPath = outPath + File.separator + serviceName;
        this.temp = outPath + File.separator + serviceName + File.separator + "temp";
 
        File dir = new File(this.outPath);
        if (dir.exists() && dir.isDirectory()) {
            FileUtil.del(dir);
        }
        dir.mkdirs();
 
        dir = new File(this.temp);
        if (dir.exists() && dir.isDirectory()) {
            FileUtil.del(dir);
        }
        dir.mkdirs();
    }
 
    public String getServiceName() {
        return serviceName;
    }
 
    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }
 
    public String getTerrainFile() {
        return terrainFile;
    }
 
    public void setTerrainFile(String terrainFile) {
        this.terrainFile = terrainFile;
    }
 
    public String getBuildingFile() {
        return buildingFile;
    }
 
    public void setBuildingFile(String buildingFile) {
        this.buildingFile = buildingFile;
    }
 
    public String getWaterPath() {
        return waterPath;
    }
 
    public void setWaterPath(String waterPath) {
        this.waterPath = waterPath;
    }
 
    public String getFlowPath() {
        return flowPath;
    }
 
    public void setFlowPath(String flowPath) {
        this.flowPath = flowPath;
    }
 
    public String getOutPath() {
        return outPath;
    }
 
    public void setOutPath(String outPath) {
        this.outPath = outPath;
    }
 
    public String getTemp() {
        return temp;
    }
 
    public void setTemp(String temp) {
        this.temp = temp;
    }
 
    public Map<String, float[]> getBuildings() {
        return buildings;
    }
 
    public void setBuildings(Map<String, float[]> buildings) {
        this.buildings = buildings;
    }
}