Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/Tkh.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.tkhcalculation; | |
11 | |
12 import java.io.Serializable; | |
13 | |
14 /** | |
15 * Result of a transport bodies height calculation. | |
16 * | |
17 * @author Gernot Belger | |
18 */ | |
19 public final class Tkh implements Serializable { | |
20 | |
21 private static final long serialVersionUID = 1L; | |
22 | |
23 private final double km; | |
24 | |
25 private final double wst; | |
26 | |
27 private final double meanBedHeight; | |
28 | |
29 private final double discharge; | |
30 | |
31 private final SoilKind kind; | |
32 | |
33 private final double tkh; | |
34 | |
35 private final double tkhUp; | |
36 | |
37 private final double tkhDown; | |
38 | |
39 public Tkh(final double km, final double wst, final double meanBedHeight, final double discharge) { | |
40 this(km, wst, meanBedHeight, discharge, null, Double.NaN, Double.NaN, Double.NaN); | |
41 } | |
42 | |
43 public Tkh(final double km, final double wst, final double meanBedHeight, final double discharge, final SoilKind kind, final double tkh, final double tkhUp, | |
44 final double tkhDown) { | |
45 this.km = km; | |
46 this.wst = wst; | |
47 this.meanBedHeight = meanBedHeight; | |
48 this.discharge = discharge; | |
49 this.kind = kind; | |
50 this.tkh = tkh; | |
51 this.tkhUp = tkhUp; | |
52 this.tkhDown = tkhDown; | |
53 } | |
54 | |
55 public double getStation() { | |
56 return this.km; | |
57 } | |
58 | |
59 public double getTkh() { | |
60 return this.tkh; | |
61 } | |
62 | |
63 public SoilKind getKind() { | |
64 return this.kind; | |
65 } | |
66 | |
67 public double getUp() { | |
68 return this.tkhUp; | |
69 } | |
70 | |
71 public double getDown() { | |
72 return this.tkhDown; | |
73 } | |
74 | |
75 public double getWaterlevel() { | |
76 return this.wst; | |
77 } | |
78 | |
79 public double getDischarge() { | |
80 return this.discharge; | |
81 } | |
82 | |
83 public double getMeanBedHeight() { | |
84 return this.meanBedHeight; | |
85 } | |
86 } |