8854
|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
8882
|
2 * Software engineering by |
|
3 * Björnsen Beratende Ingenieure GmbH |
8854
|
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt |
|
5 * |
|
6 * This file is Free Software under the GNU AGPL (>=v3) |
|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
|
8 * documentation coming with Dive4Elements River for details. |
|
9 */ |
|
10 package org.dive4elements.river.artifacts.sinfo.flowdepth; |
|
11 |
8884
|
12 import java.io.Serializable; |
8854
|
13 import java.util.ArrayList; |
|
14 import java.util.Collections; |
|
15 import java.util.List; |
|
16 |
8894
|
17 import org.apache.commons.lang.math.DoubleRange; |
|
18 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; |
8854
|
19 |
|
20 /** |
|
21 * @author Gernot Belger |
|
22 */ |
8884
|
23 public final class FlowDepthCalculationResults implements Serializable { |
|
24 private static final long serialVersionUID = 1L; |
|
25 |
8882
|
26 private final List<FlowDepthCalculationResult> results = new ArrayList<>(); |
8854
|
27 |
8863
|
28 private final String calcModeLabel; |
|
29 |
|
30 private final String user; |
|
31 |
8894
|
32 private final RiverInfo river; |
|
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) { |
8882
|
40 this.calcModeLabel = calcModeLabel; |
8863
|
41 this.user = user; |
|
42 this.river = river; |
8894
|
43 this.calcRange = calcRange; |
8882
|
44 this.useTkh = useTkh; |
|
45 } |
|
46 |
|
47 public String getCalcModeLabel() { |
8863
|
48 return this.calcModeLabel; |
|
49 } |
8882
|
50 |
|
51 public String getUser() { |
8863
|
52 return this.user; |
|
53 } |
8854
|
54 |
8894
|
55 public RiverInfo getRiver() { |
8882
|
56 return this.river; |
|
57 } |
8854
|
58 |
8894
|
59 public DoubleRange getCalcRange() { |
|
60 return this.calcRange; |
8882
|
61 } |
|
62 |
|
63 public boolean isUseTkh() { |
|
64 return this.useTkh; |
|
65 } |
|
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 } |
8894
|
74 } |