Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculationResults.java @ 8894:a66f2a7c4f84
SINFO FlowDepth - slight code cleanup
author | gernotbelger |
---|---|
date | Thu, 15 Feb 2018 18:40:40 +0100 |
parents | 7a8c12706834 |
children | d9dbf0b74bc2 |
comparison
equal
deleted
inserted
replaced
8893:ffebc94cf679 | 8894:a66f2a7c4f84 |
---|---|
12 import java.io.Serializable; | 12 import java.io.Serializable; |
13 import java.util.ArrayList; | 13 import java.util.ArrayList; |
14 import java.util.Collections; | 14 import java.util.Collections; |
15 import java.util.List; | 15 import java.util.List; |
16 | 16 |
17 import org.dive4elements.river.model.River; | 17 import org.apache.commons.lang.math.DoubleRange; |
18 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; | |
18 | 19 |
19 /** | 20 /** |
20 * @author Gernot Belger | 21 * @author Gernot Belger |
21 */ | 22 */ |
22 public final class FlowDepthCalculationResults implements Serializable { | 23 public final class FlowDepthCalculationResults implements Serializable { |
23 private static final long serialVersionUID = 1L; | 24 private static final long serialVersionUID = 1L; |
24 | 25 |
25 private final List<FlowDepthCalculationResult> results = new ArrayList<>(); | 26 private final List<FlowDepthCalculationResult> results = new ArrayList<>(); |
26 | 27 |
27 private final River river; | |
28 | |
29 private final double from; | |
30 | |
31 private final double to; | |
32 | |
33 private final boolean useTkh; | |
34 | |
35 private final String calcModeLabel; | 28 private final String calcModeLabel; |
36 | 29 |
37 private final String user; | 30 private final String user; |
38 | 31 |
39 public FlowDepthCalculationResults(final String calcModeLabel, final String user, final River river, | 32 private final RiverInfo river; |
40 final double from, final double to, final boolean useTkh) { | 33 |
34 private final boolean useTkh; | |
35 | |
36 private final DoubleRange calcRange; | |
37 | |
38 public FlowDepthCalculationResults(final String calcModeLabel, final String user, final RiverInfo river, final DoubleRange calcRange, | |
39 final boolean useTkh) { | |
41 this.calcModeLabel = calcModeLabel; | 40 this.calcModeLabel = calcModeLabel; |
42 this.user = user; | 41 this.user = user; |
43 this.river = river; | 42 this.river = river; |
44 this.from = from; | 43 this.calcRange = calcRange; |
45 this.to = to; | |
46 this.useTkh = useTkh; | 44 this.useTkh = useTkh; |
47 } | 45 } |
48 | 46 |
49 public String getCalcModeLabel() { | 47 public String getCalcModeLabel() { |
50 return this.calcModeLabel; | 48 return this.calcModeLabel; |
52 | 50 |
53 public String getUser() { | 51 public String getUser() { |
54 return this.user; | 52 return this.user; |
55 } | 53 } |
56 | 54 |
57 public River getRiver() { | 55 public RiverInfo getRiver() { |
58 return this.river; | 56 return this.river; |
59 } | 57 } |
60 | 58 |
61 public double getFrom() { | 59 public DoubleRange getCalcRange() { |
62 return this.from; | 60 return this.calcRange; |
63 } | |
64 | |
65 public double getTo() { | |
66 return this.to; | |
67 } | 61 } |
68 | 62 |
69 public boolean isUseTkh() { | 63 public boolean isUseTkh() { |
70 return this.useTkh; | 64 return this.useTkh; |
71 } | 65 } |