Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculationResults.java @ 8882:f762fadc5313
Further work on SINFO-FlowDepth
author | gernotbelger |
---|---|
date | Fri, 09 Feb 2018 16:11:47 +0100 |
parents | 1009cab0f86b |
children | 7a8c12706834 |
comparison
equal
deleted
inserted
replaced
8881:6b93a2498e06 | 8882:f762fadc5313 |
---|---|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde | 1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
2 * Software engineering by | 2 * Software engineering by |
3 * Björnsen Beratende Ingenieure GmbH | 3 * Björnsen Beratende Ingenieure GmbH |
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt | 4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt |
5 * | 5 * |
6 * This file is Free Software under the GNU AGPL (>=v3) | 6 * This file is Free Software under the GNU AGPL (>=v3) |
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. |
15 | 15 |
16 import org.dive4elements.river.model.River; | 16 import org.dive4elements.river.model.River; |
17 | 17 |
18 /** | 18 /** |
19 * @author Gernot Belger | 19 * @author Gernot Belger |
20 * | |
21 */ | 20 */ |
22 public final class FlowDepthCalculationResults{ | 21 public final class FlowDepthCalculationResults { |
23 private final List<FlowDepthCalculationResult> results = new ArrayList<>(); | 22 private final List<FlowDepthCalculationResult> results = new ArrayList<>(); |
24 | 23 |
25 private final River river; | 24 private final River river; |
26 | 25 |
27 private final double from; | 26 private final double from; |
28 | 27 |
29 private final double to; | 28 private final double to; |
30 | 29 |
31 private final boolean useTkh; | 30 private final boolean useTkh; |
32 | 31 |
33 private final String calcModeLabel; | 32 private final String calcModeLabel; |
34 | 33 |
35 private final String user; | 34 private final String user; |
36 | 35 |
37 public FlowDepthCalculationResults(final String calcModeLabel, final String user, final River river, final double from, final double to, final boolean useTkh) { | 36 public FlowDepthCalculationResults(final String calcModeLabel, final String user, final River river, |
38 this.calcModeLabel = calcModeLabel; | 37 final double from, final double to, final boolean useTkh) { |
38 this.calcModeLabel = calcModeLabel; | |
39 this.user = user; | 39 this.user = user; |
40 this.river = river; | 40 this.river = river; |
41 this.from = from; | 41 this.from = from; |
42 this.to = to; | 42 this.to = to; |
43 this.useTkh = useTkh; | 43 this.useTkh = useTkh; |
44 } | 44 } |
45 | 45 |
46 public String getCalcModeLabel() { | 46 public String getCalcModeLabel() { |
47 return this.calcModeLabel; | 47 return this.calcModeLabel; |
48 } | 48 } |
49 | 49 |
50 public String getUser() { | 50 public String getUser() { |
51 return this.user; | 51 return this.user; |
52 } | 52 } |
53 | |
54 public River getRiver() { | |
55 return this.river; | |
56 } | |
57 | 53 |
58 public double getFrom() { | 54 public River getRiver() { |
59 return this.from; | 55 return this.river; |
60 } | 56 } |
61 | 57 |
62 public double getTo() { | 58 public double getFrom() { |
63 return this.to; | 59 return this.from; |
64 } | 60 } |
65 | 61 |
66 public boolean isUseTkh() { | 62 public double getTo() { |
67 return this.useTkh; | 63 return this.to; |
68 } | 64 } |
69 | 65 |
70 void addResult(final FlowDepthCalculationResult result) { | 66 public boolean isUseTkh() { |
71 results.add(result); | 67 return this.useTkh; |
72 } | 68 } |
73 | 69 |
74 public List<FlowDepthCalculationResult> getResults() { | 70 void addResult(final FlowDepthCalculationResult result) { |
75 return Collections.unmodifiableList(results); | 71 this.results.add(result); |
76 } | 72 } |
73 | |
74 public List<FlowDepthCalculationResult> getResults() { | |
75 return Collections.unmodifiableList(this.results); | |
76 } | |
77 } | 77 } |