Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearResult.java @ 8422:96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 17 Oct 2014 13:34:08 +0200 |
parents | 8a14605fb64a |
children | 706668b19b04 |
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; |
8422
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
19 protected TDoubleArrayList dataGap1; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
20 protected TDoubleArrayList dataGap2; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
21 protected TDoubleArrayList soundingWidth1; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
22 protected TDoubleArrayList soundingWidth2; |
8420
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
23 //protected TDoubleArrayList morphWidth1; |
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
24 //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
|
25 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
|
26 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
|
27 protected String nameFirst; |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
28 protected String nameSecond; |
8273
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
29 protected int idFirst; |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
30 protected int idSecond; |
3902
da48e33f4241
Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3898
diff
changeset
|
31 |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
32 public BedDiffYearResult () { |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 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
|
34 this.diffsPerYear = new TDoubleArrayList(); |
8422
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
35 this.dataGap1 = new TDoubleArrayList(); |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
36 this.dataGap2 = new TDoubleArrayList(); |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
37 this.soundingWidth1 = new TDoubleArrayList(); |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
38 this.soundingWidth2 = new TDoubleArrayList(); |
8420
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
39 //this.morphWidth1 = new TDoubleArrayList(); |
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
40 //this.morphWidth2 = new TDoubleArrayList(); |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
41 } |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
42 |
7652 | 43 /** |
44 * @param kms the stations the following parameters are connected to. | |
45 * @param differences the height differences | |
46 * @param heights1 the heights | |
47 * @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
|
48 * @param diffsPerYear the differences normalized per year in cm. |
7652 | 49 */ |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
50 public BedDiffYearResult( |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
51 TDoubleArrayList kms, |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
52 TDoubleArrayList differences, |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
53 TDoubleArrayList heights1, |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
54 TDoubleArrayList heights2, |
8420
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
55 //TDoubleArrayList morphWidth1, |
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
56 //TDoubleArrayList morphWidth2, |
8422
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
57 TDoubleArrayList soundingWidth1, |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
58 TDoubleArrayList soundingWidth2, |
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
|
59 TDoubleArrayList diffsPerYear, |
8422
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
60 TDoubleArrayList dataGap1, |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
61 TDoubleArrayList dataGap2, |
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
|
62 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
|
63 Integer end, |
6089
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
64 String nameFirst, |
8273
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
65 String nameSecond, |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
66 int idFirst, |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
67 int idSecond |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
68 ) { |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
69 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
|
70 this.diffsPerYear = diffsPerYear; |
8422
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
71 this.dataGap1 = dataGap1; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
72 this.dataGap2 = dataGap2; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
73 this.soundingWidth1 = soundingWidth1; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
74 this.soundingWidth2 = soundingWidth2; |
8420
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
75 //this.morphWidth1 = morphWidth1; |
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
76 //this.morphWidth2 = morphWidth2; |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
77 this.start = start; |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
78 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
|
79 this.nameFirst = nameFirst; |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
80 this.nameSecond = nameSecond; |
8273
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
81 this.idFirst = idFirst; |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
82 this.idSecond = idSecond; |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
83 } |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
84 |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
85 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
|
86 return this.diffsPerYear; |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
87 } |
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
88 |
8422
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
89 public TDoubleArrayList getDataGap1() { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
90 return this.dataGap1; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
91 } |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
92 |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
93 public TDoubleArrayList getDataGap2() { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
94 return this.dataGap2; |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
95 } |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
96 |
8420
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
97 /* |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
98 public TDoubleArrayList getMorphWidth1() { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
99 return this.morphWidth1; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
100 } |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
101 |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
102 public TDoubleArrayList getMorphWidth2() { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
103 return this.morphWidth2; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
104 } |
8420
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
105 */ |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
106 |
8422
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
107 public TDoubleArrayList getSoundingWidth1() { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
108 return this.soundingWidth1; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
109 } |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
110 |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
111 public TDoubleArrayList getSoundingWidth2() { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
112 return this.soundingWidth2; |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
113 } |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
114 |
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
|
115 public Integer getStart() { |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
116 return this.start; |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
117 } |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
118 |
4636
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
119 public void setStart(int value) { |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
120 this.start = value; |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
121 } |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
122 |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
123 public void setEnd(int value) { |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
124 this.end = value; |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
125 } |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
126 |
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
|
127 public Integer getEnd() { |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
128 return this.end; |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
129 } |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
130 |
6089
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
131 /** 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
|
132 public String getNameFirst() { |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
133 return this.nameFirst; |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
134 } |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
135 |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
136 /** 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
|
137 public String getNameSecond() { |
6211
c40acb6bfe38
Fixed facet display name in bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
6089
diff
changeset
|
138 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
|
139 } |
0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
140 |
8273
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
141 /** Get id of the first BedHeight (minuend). */ |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
142 public int getIdFirst() { |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
143 return this.idFirst; |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
144 } |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
145 |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
146 /** Get id of the second BedHeight (subtrahend). */ |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
147 public int getIdSecond() { |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
148 return this.idSecond; |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
149 } |
5c3b36b519d0
Add metadata to bedheight facets in bed height differences.
"Tom Gottfried <tom@intevation.de>"
parents:
8169
diff
changeset
|
150 |
8420
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
151 /* |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
152 public void addMorphWidth1(double value) { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
153 this.morphWidth1.add(value); |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
154 } |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
155 |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
156 public void addMorphWidth2(double value) { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
157 this.morphWidth2.add(value); |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
158 } |
8420
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
159 */ |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
160 |
8422
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
161 public void addSoundingWidth1(double value) { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
162 this.soundingWidth1.add(value); |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
163 } |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
164 |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
165 public void addSoundingWidth2(double value) { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
166 this.soundingWidth2.add(value); |
4636
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
167 } |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
168 |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
169 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
|
170 this.diffsPerYear.add(value); |
4636
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
171 } |
2904ecca4663
Added missing setter for different values.
Raimund Renkert <rrenkert@intevation.de>
parents:
3902
diff
changeset
|
172 |
8420
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
173 /* |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
174 public double[][] getMorphWidth1Data() { |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
175 return new double[][] { |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
176 kms.toNativeArray(), |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
177 morphWidth1.toNativeArray() |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
178 }; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
179 } |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
180 |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
181 public double[][] getMorphWidth2Data() { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
182 return new double[][] { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
183 kms.toNativeArray(), |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
184 morphWidth2.toNativeArray() |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
185 }; |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
186 } |
8420
8a14605fb64a
Removed morpho width from bed height diffs.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8273
diff
changeset
|
187 */ |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
188 |
8422
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
189 public double[][] getSoundingWidth1Data() { |
7829
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
190 return new double[][] { |
1aba75321441
Added morph. active width to bed height difference calculation.
Raimund Renkert <rrenkert@intevation.de>
parents:
7652
diff
changeset
|
191 kms.toNativeArray(), |
8422
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
192 soundingWidth1.toNativeArray() |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
193 }; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
194 } |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
195 |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
196 public double[][] getSoundingWidth2Data() { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
197 return new double[][] { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
198 kms.toNativeArray(), |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
199 soundingWidth2.toNativeArray() |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
200 }; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
201 } |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
202 |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
203 public double[][] getDataGap1Data() { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
204 return new double[][] { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
205 kms.toNativeArray(), |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
206 dataGap1.toNativeArray() |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
207 }; |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
208 } |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
209 |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
210 public double[][] getDataGap2Data() { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
211 return new double[][] { |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
212 kms.toNativeArray(), |
96bf5135cd0e
Bedheight differences exports sounding width and data gap for minuend and subtrahend.
Raimund Renkert <rrenkert@intevation.de>
parents:
8420
diff
changeset
|
213 dataGap2.toNativeArray() |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
214 }; |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
215 } |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
216 |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
217 public double[][] getHeightPerYearData() { |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
218 return new double[][] { |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
219 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
|
220 diffsPerYear.toNativeArray() |
3898
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
221 }; |
95d699c769fb
Bedheight difference calculation has chart outpus now.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3887
diff
changeset
|
222 } |
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
|
223 |
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
|
224 @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
|
225 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
|
226 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
|
227 } |
3887
a1c79d84e3cd
New calcultion in MINFO: Bed height difference calculation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
228 } |
6764
5ae10d4688ab
Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
6211
diff
changeset
|
229 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |