Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthdev/FlowDepthDevelopmentCalculationResult.java @ 9070:611a523fc42f
VegetationZoneAccessHelper, VegetationTablePanels verbessert
author | gernotbelger |
---|---|
date | Tue, 15 May 2018 18:04:36 +0200 |
parents | 2ed3824a3d53 |
children | 23945061daec |
rev | line source |
---|---|
8951 | 1 /* Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
2 * Software engineering by | |
3 * Björnsen Beratende Ingenieure GmbH | |
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.flowdepthdev; | |
11 | |
12 import java.util.Collection; | |
13 | |
8997 | 14 import org.dive4elements.river.artifacts.common.ResultRow; |
8951 | 15 import org.dive4elements.river.artifacts.sinfo.common.AbstractSInfoCalculationResult; |
16 import org.dive4elements.river.artifacts.sinfo.util.BedHeightInfo; | |
17 import org.dive4elements.river.artifacts.sinfo.util.WstInfo; | |
18 | |
19 /** | |
9067 | 20 * Contains the results of a {@link FloodDurationCalculation}. |
8951 | 21 * |
22 * @author Gernot Belger | |
23 */ | |
24 final class FlowDepthDevelopmentCalculationResult extends AbstractSInfoCalculationResult { | |
25 | |
26 private static final long serialVersionUID = 1L; | |
27 | |
28 private final BedHeightInfo currentSounding; | |
29 | |
30 private final BedHeightInfo historicalSounding; | |
31 | |
32 private final WstInfo historicalWst; | |
33 | |
34 private final WstInfo currentWst; | |
35 | |
36 public FlowDepthDevelopmentCalculationResult(final String label, final WstInfo currentWst, final WstInfo historicalWst, final BedHeightInfo currentSounding, | |
8997 | 37 final BedHeightInfo historicalSounding, final Collection< ResultRow> rows) { |
9040 | 38 // TODO: bad abstraction if we give null here... |
8951 | 39 super(label, null, rows); |
40 | |
41 this.currentWst = currentWst; | |
42 this.historicalWst = historicalWst; | |
43 | |
44 this.currentSounding = currentSounding; | |
45 this.historicalSounding = historicalSounding; | |
46 } | |
47 | |
48 public WstInfo getCurrentWst() { | |
49 return this.currentWst; | |
50 } | |
51 | |
52 public WstInfo getHistoricalWst() { | |
53 return this.historicalWst; | |
54 } | |
55 | |
56 public BedHeightInfo getCurrentSounding() { | |
57 return this.currentSounding; | |
58 } | |
59 | |
60 public BedHeightInfo getHistoricalSounding() { | |
61 return this.historicalSounding; | |
62 } | |
8953
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
63 |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
64 public String getWaterlevelDifferenceLabel() { |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
65 return new StringBuilder(). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
66 append(this.currentWst.getLabel()). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
67 append(" - "). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
68 append(this.historicalWst.getLabel()). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
69 toString(); |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
70 } |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
71 |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
72 public String getBedHeightDifferenceLabel() { |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
73 return new StringBuilder(). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
74 append(this.currentSounding.getDescription()). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
75 append(" - "). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
76 append(this.historicalSounding.getDescription()). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
77 toString(); |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
78 } |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
79 |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
80 public String getFlowDepthCurrentLabel() { |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
81 return new StringBuilder(). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
82 append(this.currentWst.getLabel()). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
83 append(" - "). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
84 append(this.currentSounding.getDescription()). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
85 toString(); |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
86 } |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
87 |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
88 public String getFlowDepthHistoricalLabel() { |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
89 return new StringBuilder(). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
90 append(this.historicalWst.getLabel()). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
91 append(" - "). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
92 append(this.historicalSounding.getDescription()). // |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
93 toString(); |
c40db8e8dcae
SINFO - Flow depth development - implemented exporters
gernotbelger
parents:
8951
diff
changeset
|
94 } |
8951 | 95 } |