Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculationResults.java @ 8916:5d5d0051723f
Working on outputmodes of tkh calculation
author | gernotbelger |
---|---|
date | Wed, 28 Feb 2018 18:55:39 +0100 |
parents | d9dbf0b74bc2 |
children | a4f1ac81f26d |
comparison
equal
deleted
inserted
replaced
8915:d9dbf0b74bc2 | 8916:5d5d0051723f |
---|---|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 package org.dive4elements.river.artifacts.sinfo.flowdepth; | 10 package org.dive4elements.river.artifacts.sinfo.flowdepth; |
11 | 11 |
12 import java.io.Serializable; | |
13 import java.util.ArrayList; | |
14 import java.util.Collections; | |
15 import java.util.List; | |
16 | |
17 import org.apache.commons.lang.math.DoubleRange; | 12 import org.apache.commons.lang.math.DoubleRange; |
13 import org.dive4elements.river.artifacts.sinfo.common.AbstractSInfoCalculationResults; | |
18 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; | 14 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; |
19 | 15 |
20 /** | 16 /** |
21 * @author Gernot Belger | 17 * @author Gernot Belger |
22 */ | 18 */ |
23 final class FlowDepthCalculationResults implements Serializable { | 19 final class FlowDepthCalculationResults extends AbstractSInfoCalculationResults<FlowDepthRow, FlowDepthCalculationResult> { |
20 | |
24 private static final long serialVersionUID = 1L; | 21 private static final long serialVersionUID = 1L; |
25 | |
26 private final List<FlowDepthCalculationResult> results = new ArrayList<>(); | |
27 | |
28 private final String calcModeLabel; | |
29 | |
30 private final String user; | |
31 | |
32 private final RiverInfo river; | |
33 | 22 |
34 private final boolean useTkh; | 23 private final boolean useTkh; |
35 | 24 |
36 private final DoubleRange calcRange; | |
37 | |
38 public FlowDepthCalculationResults(final String calcModeLabel, final String user, final RiverInfo river, final DoubleRange calcRange, | 25 public FlowDepthCalculationResults(final String calcModeLabel, final String user, final RiverInfo river, final DoubleRange calcRange, |
39 final boolean useTkh) { | 26 final boolean useTkh) { |
40 this.calcModeLabel = calcModeLabel; | 27 super(calcModeLabel, user, river, calcRange); |
41 this.user = user; | 28 |
42 this.river = river; | |
43 this.calcRange = calcRange; | |
44 this.useTkh = useTkh; | 29 this.useTkh = useTkh; |
45 } | |
46 | |
47 public String getCalcModeLabel() { | |
48 return this.calcModeLabel; | |
49 } | |
50 | |
51 public String getUser() { | |
52 return this.user; | |
53 } | |
54 | |
55 public RiverInfo getRiver() { | |
56 return this.river; | |
57 } | |
58 | |
59 public DoubleRange getCalcRange() { | |
60 return this.calcRange; | |
61 } | 30 } |
62 | 31 |
63 public boolean isUseTkh() { | 32 public boolean isUseTkh() { |
64 return this.useTkh; | 33 return this.useTkh; |
65 } | 34 } |
66 | |
67 void addResult(final FlowDepthCalculationResult result) { | |
68 this.results.add(result); | |
69 } | |
70 | |
71 public List<FlowDepthCalculationResult> getResults() { | |
72 return Collections.unmodifiableList(this.results); | |
73 } | |
74 } | 35 } |