Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearResult.java @ 8260:48d4921665e3
Making i18n work was just easier using less wrappers in this case (issue1631).
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 11 Sep 2014 17:37:03 +0200 |
parents | 856701739443 |
children | 5c3b36b519d0 |
rev | line source |
---|---|
5863
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde |
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
2 * Software engineering by Intevation GmbH |
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
3 * |
5994
af13ceeba52a
Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5863
diff
changeset
|
4 * This file is Free Software under the GNU AGPL (>=v3) |
5863
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
5994
af13ceeba52a
Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5863
diff
changeset
|
6 * documentation coming with Dive4Elements River for details. |
5863
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
7 */ |
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
8 |
5831
bd047b71ab37
Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4636
diff
changeset
|
9 package org.dive4elements.river.artifacts.model.minfo; |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
10 |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 import gnu.trove.TDoubleArrayList; |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 |
6764
5ae10d4688ab
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
6211
diff
changeset
|
14 /** Result of a bed diff year calculation. */ |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 public class BedDiffYearResult |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 extends BedDifferencesResult |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
17 { |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
18 protected TDoubleArrayList diffsPerYear; |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 protected TDoubleArrayList dataGap; |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
20 protected TDoubleArrayList soundingWidth; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
21 protected TDoubleArrayList morphWidth1; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
22 protected TDoubleArrayList morphWidth2; |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
23 protected Integer start; |
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
24 protected Integer end; |
6089
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
25 protected String nameFirst; |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
26 protected String nameSecond; |
3902
da48e33f4241
Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3898
diff
changeset
|
27 |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
28 public BedDiffYearResult () { |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
29 super(); |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
30 this.diffsPerYear = new TDoubleArrayList(); |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
31 this.dataGap = new TDoubleArrayList(); |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
32 this.soundingWidth = new TDoubleArrayList(); |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
33 this.morphWidth1 = new TDoubleArrayList(); |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
34 this.morphWidth2 = new TDoubleArrayList(); |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
35 } |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
36 |
7652 | 37 /** |
38 * @param kms the stations the following parameters are connected to. | |
39 * @param differences the height differences | |
40 * @param heights1 the heights | |
41 * @param heights2 the other heights | |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
42 * @param diffsPerYear the differences normalized per year in cm. |
7652 | 43 */ |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
44 public BedDiffYearResult( |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
45 TDoubleArrayList kms, |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
46 TDoubleArrayList differences, |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
47 TDoubleArrayList heights1, |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
48 TDoubleArrayList heights2, |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
49 TDoubleArrayList morphWidth1, |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
50 TDoubleArrayList morphWidth2, |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
51 TDoubleArrayList soundingWidth, |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
52 TDoubleArrayList diffsPerYear, |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
53 TDoubleArrayList dataGap, |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
54 Integer start, |
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
55 Integer end, |
6089
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
56 String nameFirst, |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
57 String nameSecond |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
58 ) { |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
59 super(kms, differences, heights1, heights2); |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
60 this.diffsPerYear = diffsPerYear; |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
61 this.dataGap = dataGap; |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
62 this.soundingWidth = soundingWidth; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
63 this.morphWidth1 = morphWidth1; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
64 this.morphWidth2 = morphWidth2; |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
65 this.start = start; |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
66 this.end = end; |
6089
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
67 this.nameFirst = nameFirst; |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
68 this.nameSecond = nameSecond; |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
69 } |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
70 |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
71 public TDoubleArrayList getBedHeights() { |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
72 return this.diffsPerYear; |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
73 } |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
74 |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
75 public TDoubleArrayList getDataGap() { |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
76 return this.dataGap; |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
77 } |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
78 |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
79 public TDoubleArrayList getMorphWidth1() { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
80 return this.morphWidth1; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
81 } |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
82 |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
83 public TDoubleArrayList getMorphWidth2() { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
84 return this.morphWidth2; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
85 } |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
86 |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
87 public TDoubleArrayList getSoundingWidth() { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
88 return this.soundingWidth; |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
89 } |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
90 |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
91 public Integer getStart() { |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
92 return this.start; |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
93 } |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
94 |
4636
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
95 public void setStart(int value) { |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
96 this.start = value; |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
97 } |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
98 |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
99 public void setEnd(int value) { |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
100 this.end = value; |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
101 } |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
102 |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
103 public Integer getEnd() { |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
104 return this.end; |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
105 } |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
106 |
6089
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
107 /** Get name of the first BedHeight (minuend). */ |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
108 public String getNameFirst() { |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
109 return this.nameFirst; |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
110 } |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
111 |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
112 /** Get name of the second BedHeight (subtrahend). */ |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
113 public String getNameSecond() { |
6211
c40acb6bfe38
Fixed facet display name in bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
6089
diff
changeset
|
114 return this.nameSecond; |
6089
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
115 } |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
116 |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
117 public void addMorphWidth1(double value) { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
118 this.morphWidth1.add(value); |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
119 } |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
120 |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
121 public void addMorphWidth2(double value) { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
122 this.morphWidth2.add(value); |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
123 } |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
124 |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
125 public void addSoundingWidth(double value) { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
126 this.soundingWidth.add(value); |
4636
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
127 } |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
128 |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
129 public void addBedHeights(double value) { |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
130 this.diffsPerYear.add(value); |
4636
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
131 } |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
132 |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
133 public double[][] getMorphWidth1Data() { |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
134 return new double[][] { |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
135 kms.toNativeArray(), |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
136 morphWidth1.toNativeArray() |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
137 }; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
138 } |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
139 |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
140 public double[][] getMorphWidth2Data() { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
141 return new double[][] { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
142 kms.toNativeArray(), |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
143 morphWidth2.toNativeArray() |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
144 }; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
145 } |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
146 |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
147 public double[][] getSoundingWidthData() { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
148 return new double[][] { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
149 kms.toNativeArray(), |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
150 soundingWidth.toNativeArray() |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
151 }; |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
152 } |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
153 |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
154 public double[][] getHeightPerYearData() { |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
155 return new double[][] { |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
156 kms.toNativeArray(), |
8169
856701739443
Handle missing years in bed height differences without assuming an unknown year to be BC 1.
"Tom Gottfried <tom@intevation.de>"
parents:
7913
diff
changeset
|
157 diffsPerYear.toNativeArray() |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
158 }; |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
159 } |
7913
76b5add4f268
Added diff pair column to CSV export of bed height differences. TODO: same for PDF, adjust client.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7829
diff
changeset
|
160 |
76b5add4f268
Added diff pair column to CSV export of bed height differences. TODO: same for PDF, adjust client.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7829
diff
changeset
|
161 @Override |
76b5add4f268
Added diff pair column to CSV export of bed height differences. TODO: same for PDF, adjust client.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7829
diff
changeset
|
162 public String getDiffDescription() { |
76b5add4f268
Added diff pair column to CSV export of bed height differences. TODO: same for PDF, adjust client.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7829
diff
changeset
|
163 return nameFirst + " - " + nameSecond; |
76b5add4f268
Added diff pair column to CSV export of bed height differences. TODO: same for PDF, adjust client.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7829
diff
changeset
|
164 } |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
165 } |
6764
5ae10d4688ab
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
6211
diff
changeset
|
166 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |