Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/AbstractSInfoResultRow.java @ 8946:5d5d482da3e9
Implementing SINFO - FlowDepthMinMax calculation
author | gernotbelger |
---|---|
date | Tue, 13 Mar 2018 18:49:33 +0100 |
parents | 82998242ba84 |
children |
comparison
equal
deleted
inserted
replaced
8945:4a6b6a3c279c | 8946:5d5d482da3e9 |
---|---|
9 */ | 9 */ |
10 package org.dive4elements.river.artifacts.sinfo.common; | 10 package org.dive4elements.river.artifacts.sinfo.common; |
11 | 11 |
12 import java.io.Serializable; | 12 import java.io.Serializable; |
13 | 13 |
14 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.SoilKind; | |
15 import org.dive4elements.river.artifacts.sinfo.tkhcalculation.Tkh; | |
16 | |
17 /** | 14 /** |
18 * Contains common result data of flow-depth- and tkh-calculations. | 15 * Contains common result data of flow-depth- and tkh-calculations. |
19 * | 16 * |
20 * @author Gernot Belger | 17 * @author Gernot Belger |
21 */ | 18 */ |
22 public abstract class AbstractSInfoResultRow implements Serializable { | 19 public abstract class AbstractSInfoResultRow implements Serializable { |
23 private static final long serialVersionUID = 1L; | 20 private static final long serialVersionUID = 1L; |
24 | 21 |
25 private final Tkh tkh; | |
26 | |
27 private final String waterlevelLabel; | 22 private final String waterlevelLabel; |
28 | 23 |
29 private final String gauge; | 24 private final String gauge; |
30 | 25 |
31 private final String location; | 26 private final String location; |
32 | 27 |
33 public AbstractSInfoResultRow(final Tkh tkh, final String waterlevelLabel, final String gauge, final String location) { | 28 public AbstractSInfoResultRow(final String waterlevelLabel, final String gauge, final String location) { |
34 this.tkh = tkh; | |
35 this.waterlevelLabel = waterlevelLabel; | 29 this.waterlevelLabel = waterlevelLabel; |
36 this.gauge = gauge; | 30 this.gauge = gauge; |
37 this.location = location; | 31 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 } | 32 } |
67 | 33 |
68 public final String getWaterlevelLabel() { | 34 public final String getWaterlevelLabel() { |
69 return this.waterlevelLabel; | 35 return this.waterlevelLabel; |
70 } | 36 } |
71 | 37 |
72 public final String getGauge() { | 38 public final String getGauge() { |
73 return this.gauge; | 39 return this.gauge; |
74 } | 40 } |
75 | 41 |
76 public final double getMeanBedHeight() { | |
77 return this.tkh.getMeanBedHeight(); | |
78 } | |
79 | |
80 public final double getFlowDepth() { | |
81 return this.tkh.getFlowDepth(); | |
82 } | |
83 | |
84 public double getFlowDepthWithTkh() { | |
85 return this.tkh.getFlowDepthTkh(); | |
86 } | |
87 | |
88 public double getVelocity() { | |
89 return this.tkh.getVelocity(); | |
90 } | |
91 | |
92 public double getD50() { | |
93 return this.tkh.getD50(); | |
94 } | |
95 | |
96 public double getTau() { | |
97 return this.tkh.getTau(); | |
98 } | |
99 | |
100 public final String getLocation() { | 42 public final String getLocation() { |
101 return this.location; | 43 return this.location; |
102 } | 44 } |
103 } | 45 } |