comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthRow.java @ 8886:cc86b0f9b3c3

SINFO-FlowDepth - work on tkh themes
author gernotbelger
date Wed, 14 Feb 2018 18:10:53 +0100
parents 7bbfb24e6eec
children d9dbf0b74bc2
comparison
equal deleted inserted replaced
8885:e5f688820951 8886:cc86b0f9b3c3
1 /* Copyright (C) 2017 by Bundesanstalt für Gewässerkunde 1 /* Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
2 * Software engineering by 2 * Software engineering by
3 * Björnsen Beratende Ingenieure GmbH 3 * Björnsen Beratende Ingenieure GmbH
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt 4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
5 * 5 *
6 * This file is Free Software under the GNU AGPL (>=v3) 6 * This file is Free Software under the GNU AGPL (>=v3)
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
8 * documentation coming with Dive4Elements River for details. 8 * documentation coming with Dive4Elements River for details.
11 11
12 import java.io.Serializable; 12 import java.io.Serializable;
13 13
14 /** 14 /**
15 * Part of {@link FlowDepthCalculationResult} which represents one calculated row of flow depth data. 15 * Part of {@link FlowDepthCalculationResult} which represents one calculated row of flow depth data.
16 * 16 *
17 * @author Gernot Belger 17 * @author Gernot Belger
18 */ 18 */
19 final class FlowDepthRow 19 final class FlowDepthRow implements Serializable {
20 implements Serializable { 20 private static final long serialVersionUID = 1L;
21 private final double station;
22 private final double flowDepth;
23 private final double flowDepthWithTkh;
24 private final double tkh;
25 private final double waterlevel;
26 private final double discharge;
27 private final String waterlevelLabel;
28 private final String gauge;
29 private final double meanBedHeight;
30 private final String soundageLabel;
31 private final String location;
32 21
33 public FlowDepthRow( double station, double flowDepth, double flowDepthWithTkh, double tkh, double waterlevel, double discharge, String waterlevelLabel, String gauge, double meanBedHeight, String soundageLabel, String location ) { 22 private final double station;
34 this.station = station;
35 this.flowDepth = flowDepth;
36 this.flowDepthWithTkh = flowDepthWithTkh;
37 this.tkh = tkh;
38 this.waterlevel = waterlevel;
39 this.discharge = discharge;
40 this.waterlevelLabel = waterlevelLabel;
41 this.gauge = gauge;
42 this.meanBedHeight = meanBedHeight;
43 this.soundageLabel = soundageLabel;
44 this.location = location;
45 }
46 23
47 public double getStation() { 24 private final double flowDepth;
48 return station;
49 }
50 25
51 public double getFlowDepth() { 26 private final double flowDepthWithTkh;
52 return flowDepth;
53 }
54 27
55 public double getFlowDepthWithTkh() { 28 private final SoilKind tkhKind;
56 return flowDepthWithTkh;
57 }
58
59 public double getTkh() {
60 return tkh;
61 }
62 29
63 public double getWaterlevel() { 30 private final double tkh;
64 return waterlevel;
65 }
66 31
67 public double getDischarge() { 32 private final double tkhUp;
68 return discharge;
69 }
70 33
71 public String getWaterlevelLabel() { 34 private final double tkhDown;
72 return waterlevelLabel;
73 }
74 35
75 public String getGauge() { 36 private final double waterlevel;
76 return gauge;
77 }
78 37
79 public double getMeanBedHeight() { 38 private final double discharge;
80 return meanBedHeight;
81 }
82 39
83 public String getSoundageLabel() { 40 private final String waterlevelLabel;
84 return soundageLabel;
85 }
86 41
87 public String getLocation() { 42 private final String gauge;
88 return location; 43
89 } 44 private final double meanBedHeight;
45
46 private final String soundageLabel;
47
48 private final String location;
49
50 public FlowDepthRow(final double station, final double flowDepth, final double flowDepthWithTkh, final SoilKind tkhKind, final double tkh,
51 final double tkhUp, final double tkhDown,
52 final double waterlevel, final double discharge, final String waterlevelLabel, final String gauge, final double meanBedHeight,
53 final String soundageLabel, final String location) {
54 this.station = station;
55 this.flowDepth = flowDepth;
56 this.flowDepthWithTkh = flowDepthWithTkh;
57 this.tkhKind = tkhKind;
58 this.tkh = tkh;
59 this.tkhUp = tkhUp;
60 this.tkhDown = tkhDown;
61 this.waterlevel = waterlevel;
62 this.discharge = discharge;
63 this.waterlevelLabel = waterlevelLabel;
64 this.gauge = gauge;
65 this.meanBedHeight = meanBedHeight;
66 this.soundageLabel = soundageLabel;
67 this.location = location;
68 }
69
70 public double getStation() {
71 return this.station;
72 }
73
74 public double getFlowDepth() {
75 return this.flowDepth;
76 }
77
78 public double getFlowDepthWithTkh() {
79 return this.flowDepthWithTkh;
80 }
81
82 public SoilKind getTkhKind() {
83 return this.tkhKind;
84 }
85
86 public double getTkh() {
87 return this.tkh;
88 }
89
90 public double getTkhUp() {
91 return this.tkhUp;
92 }
93
94 public double getTkhDown() {
95 return this.tkhDown;
96 }
97
98 public double getWaterlevel() {
99 return this.waterlevel;
100 }
101
102 public double getDischarge() {
103 return this.discharge;
104 }
105
106 public String getWaterlevelLabel() {
107 return this.waterlevelLabel;
108 }
109
110 public String getGauge() {
111 return this.gauge;
112 }
113
114 public double getMeanBedHeight() {
115 return this.meanBedHeight;
116 }
117
118 public String getSoundageLabel() {
119 return this.soundageLabel;
120 }
121
122 public String getLocation() {
123 return this.location;
124 }
90 } 125 }

http://dive4elements.wald.intevation.org