Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/AbstractSInfoResultRow.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 | |
children | 82998242ba84 |
comparison
equal
deleted
inserted
replaced
8914:e3519c3e7a0a | 8915:d9dbf0b74bc2 |
---|---|
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.common; | |
11 | |
12 import java.io.Serializable; | |
13 | |
14 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.SoilKind; | |
15 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.Tkh; | |
16 | |
17 /** | |
18 * Contains common result data of flow-depth- and tkh-calculations. | |
19 * | |
20 * @author Gernot Belger | |
21 */ | |
22 public abstract class AbstractSInfoResultRow implements Serializable { | |
23 private static final long serialVersionUID = 1L; | |
24 | |
25 private final Tkh tkh; | |
26 | |
27 private final String waterlevelLabel; | |
28 | |
29 private final String gauge; | |
30 | |
31 private final String location; | |
32 | |
33 public AbstractSInfoResultRow(final Tkh tkh, final String waterlevelLabel, final String gauge, final String location) { | |
34 this.tkh = tkh; | |
35 this.waterlevelLabel = waterlevelLabel; | |
36 this.gauge = gauge; | |
37 this.location = location; | |
38 } | |
39 | |
40 public final double getStation() { | |
41 return this.tkh.getStation(); | |
42 } | |
43 | |
44 public final SoilKind getTkhKind() { | |
45 return this.tkh.getKind(); | |
46 } | |
47 | |
48 public final double getTkh() { | |
49 return this.tkh.getTkh(); | |
50 } | |
51 | |
52 public final double getTkhUp() { | |
53 return this.tkh.getUp(); | |
54 } | |
55 | |
56 public final double getTkhDown() { | |
57 return this.tkh.getDown(); | |
58 } | |
59 | |
60 public final double getWaterlevel() { | |
61 return this.tkh.getWaterlevel(); | |
62 } | |
63 | |
64 public final double getDischarge() { | |
65 return this.tkh.getDischarge(); | |
66 } | |
67 | |
68 public final String getWaterlevelLabel() { | |
69 return this.waterlevelLabel; | |
70 } | |
71 | |
72 public final String getGauge() { | |
73 return this.gauge; | |
74 } | |
75 | |
76 public final double getMeanBedHeight() { | |
77 return this.tkh.getMeanBedHeight(); | |
78 } | |
79 | |
80 public final String getLocation() { | |
81 return this.location; | |
82 } | |
83 } |