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 |
|
12 import java.util.ArrayList; |
|
13 import java.util.Collections; |
|
14 import java.util.List; |
|
15 |
|
16 import org.dive4elements.river.model.River; |
|
17 |
|
18 /** |
|
19 * @author Gernot Belger |
|
20 */ |
8882
|
21 public final class FlowDepthCalculationResults { |
|
22 private final List<FlowDepthCalculationResult> results = new ArrayList<>(); |
8854
|
23 |
8882
|
24 private final River river; |
|
25 |
|
26 private final double from; |
|
27 |
|
28 private final double to; |
|
29 |
|
30 private final boolean useTkh; |
8854
|
31 |
8863
|
32 private final String calcModeLabel; |
|
33 |
|
34 private final String user; |
|
35 |
8882
|
36 public FlowDepthCalculationResults(final String calcModeLabel, final String user, final River river, |
|
37 final double from, final double to, final boolean useTkh) { |
|
38 this.calcModeLabel = calcModeLabel; |
8863
|
39 this.user = user; |
|
40 this.river = river; |
8882
|
41 this.from = from; |
|
42 this.to = to; |
|
43 this.useTkh = useTkh; |
|
44 } |
|
45 |
|
46 public String getCalcModeLabel() { |
8863
|
47 return this.calcModeLabel; |
|
48 } |
8882
|
49 |
|
50 public String getUser() { |
8863
|
51 return this.user; |
|
52 } |
8854
|
53 |
8882
|
54 public River getRiver() { |
|
55 return this.river; |
|
56 } |
8854
|
57 |
8882
|
58 public double getFrom() { |
|
59 return this.from; |
|
60 } |
|
61 |
|
62 public double getTo() { |
|
63 return this.to; |
|
64 } |
|
65 |
|
66 public boolean isUseTkh() { |
|
67 return this.useTkh; |
|
68 } |
|
69 |
|
70 void addResult(final FlowDepthCalculationResult result) { |
|
71 this.results.add(result); |
|
72 } |
|
73 |
|
74 public List<FlowDepthCalculationResult> getResults() { |
|
75 return Collections.unmodifiableList(this.results); |
|
76 } |
8854
|
77 } |