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