annotate artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/QWD.java @ 9348:a3f318347707

Show wq outliers within same thems with different symbol: not ready yet
author gernotbelger
date Tue, 31 Jul 2018 11:25:38 +0200
parents af13ceeba52a
children 9744ce3c3853
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
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
30 public QWD(final double q, final double w, final String description, final Date date, final boolean interpolated, final double deltaW, final int index,
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
31 final boolean isOutlier) {
3604
2382b26079ac FixA: Store unique coulun index into QW models.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3106
diff changeset
32 super(q, w, description, date, interpolated, index);
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
33
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
34 this.deltaW = deltaW;
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
35 this.isOutlier = isOutlier;
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
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
38 public double getDeltaW() {
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
39 return this.deltaW;
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
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
42 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
43 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
44 }
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
45
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
46 public boolean isOutlier() {
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
47 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
48 }
9aa1d770da4a Fix: Better model for storing results of the delta W/t calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
49
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
50 public void setOutlier(final boolean isOutlier) {
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
51 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
52 }
9348
a3f318347707 Show wq outliers within same thems with different symbol: not ready yet
gernotbelger
parents: 5994
diff changeset
53 }

http://dive4elements.wald.intevation.org