Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthRow.java @ 8915:d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
author | gernotbelger |
---|---|
date | Wed, 28 Feb 2018 17:27:15 +0100 |
parents | cc86b0f9b3c3 |
children | 82998242ba84 |
rev | line source |
---|---|
8854 | 1 /* Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
8886 | 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 | |
8915
d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
gernotbelger
parents:
8886
diff
changeset
|
12 import org.dive4elements.river.artifacts.sinfo.common.AbstractSInfoResultRow; |
d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
gernotbelger
parents:
8886
diff
changeset
|
13 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.Tkh; |
8854 | 14 |
15 /** | |
16 * Part of {@link FlowDepthCalculationResult} which represents one calculated row of flow depth data. | |
8886 | 17 * |
8854 | 18 * @author Gernot Belger |
19 */ | |
8915
d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
gernotbelger
parents:
8886
diff
changeset
|
20 final class FlowDepthRow extends AbstractSInfoResultRow { |
8886 | 21 private static final long serialVersionUID = 1L; |
8854 | 22 |
8886 | 23 private final double flowDepth; |
8854 | 24 |
8886 | 25 private final double flowDepthWithTkh; |
8854 | 26 |
8915
d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
gernotbelger
parents:
8886
diff
changeset
|
27 private final String soundingLabel; |
8886 | 28 |
8915
d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
gernotbelger
parents:
8886
diff
changeset
|
29 public FlowDepthRow(final double flowDepth, final double flowDepthWithTkh, final Tkh tkh, final String waterlevelLabel, |
d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
gernotbelger
parents:
8886
diff
changeset
|
30 final String gauge, final String soundingLabel, final String location) { |
8886 | 31 |
8915
d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
gernotbelger
parents:
8886
diff
changeset
|
32 super(tkh, waterlevelLabel, gauge, location); |
8886 | 33 |
34 this.flowDepth = flowDepth; | |
35 this.flowDepthWithTkh = flowDepthWithTkh; | |
8915
d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
gernotbelger
parents:
8886
diff
changeset
|
36 this.soundingLabel = soundingLabel; |
8886 | 37 } |
38 | |
39 public double getFlowDepth() { | |
40 return this.flowDepth; | |
41 } | |
42 | |
43 public double getFlowDepthWithTkh() { | |
44 return this.flowDepthWithTkh; | |
45 } | |
46 | |
47 public String getSoundageLabel() { | |
8915
d9dbf0b74bc2
Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
gernotbelger
parents:
8886
diff
changeset
|
48 return this.soundingLabel; |
8886 | 49 } |
8854 | 50 } |