annotate artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/QWD.java @ 9415:9744ce3c3853

Rework of fixanalysis computation and dWt and WQ facets. Got rid of strange remapping and bitshifting code by explicitely saving the column information and using it in the facets. The facets also put the valid station range into their xml-metadata
author gernotbelger
date Thu, 16 Aug 2018 16:27:53 +0200
parents a3f318347707
children
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: 3729
diff changeset
9 package org.dive4elements.river.artifacts.model.fixings;
3005
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
10
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
11 import java.util.Date;
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
12
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
13 public class QWD extends QWI {
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
14
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
15 private static final long serialVersionUID = 1L;
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
16
3005
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
17 protected double deltaW;
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
18
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
19 private boolean isOutlier;
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
20
3005
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
21 public QWD() {
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
22 }
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
23
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
24 public QWD(final double q, final double w, final boolean isOutlier) {
3096
d7b0f52d6d04 FixA: Calculate Delta W(t) for reference points, too.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3011
diff changeset
25 super(q, w);
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
26
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
27 this.isOutlier = isOutlier;
3096
d7b0f52d6d04 FixA: Calculate Delta W(t) for reference points, too.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3011
diff changeset
28 }
d7b0f52d6d04 FixA: Calculate Delta W(t) for reference points, too.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3011
diff changeset
29
9415
9744ce3c3853 Rework of fixanalysis computation and dWt and WQ facets. Got rid of strange remapping and bitshifting code by explicitely saving the column information and using it in the facets.
gernotbelger
parents: 9348
diff changeset
30 public QWD(final double q, final double w, final Date date, final boolean interpolated, final double deltaW, final boolean isOutlier) {
9744ce3c3853 Rework of fixanalysis computation and dWt and WQ facets. Got rid of strange remapping and bitshifting code by explicitely saving the column information and using it in the facets.
gernotbelger
parents: 9348
diff changeset
31 super(q, w, date, interpolated);
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
32
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
33 this.deltaW = deltaW;
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
34 this.isOutlier = isOutlier;
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
35 }
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
36
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
37 public double getDeltaW() {
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
38 return this.deltaW;
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
39 }
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
40
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
41 public void setDeltaW(final double deltaW) {
3011
ab81ffd1343e FixA: Reactivated rewrite of the outlier checks.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3008
diff changeset
42 this.deltaW = deltaW;
3005
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
43 }
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
44
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
45 public boolean isOutlier() {
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
46 return this.isOutlier;
3005
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
47 }
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
48
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
49 public void setOutlier(final boolean isOutlier) {
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
50 this.isOutlier = isOutlier;
3005
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
51 }
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
52 }

http://dive4elements.wald.intevation.org