annotate artifacts/src/main/java/org/dive4elements/river/artifacts/states/fixation/FixRealizingCompute.java @ 9360:ddcd52d239cd

Outliers in fixation calculation are now shown within the other 'B' event themes and get a separate symbol (triangle). Removed old outliers theme. Also consider showpoints property. Also consider pointsize property.
author gernotbelger
date Wed, 01 Aug 2018 17:13:52 +0200
parents 0c621beceb2f
children 9744ce3c3853
rev   line source
5863
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5849
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: 5849
diff changeset
2 * Software engineering by Intevation GmbH
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5849
diff changeset
3 *
5994
af13ceeba52a Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5867
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: 5849
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
5994
af13ceeba52a Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5867
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: 5849
diff changeset
7 */
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5849
diff changeset
8
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
9 package org.dive4elements.river.artifacts.states.fixation;
3413
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
10
7525
6650485c2c9b Part fix for flys/issue1585: Use result from fitting to display interpolated W/Q points, too. TODO: Draw interpolated as circles.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6511
diff changeset
11 import java.text.DateFormat;
6650485c2c9b Part fix for flys/issue1585: Use result from fitting to display interpolated W/Q points, too. TODO: Draw interpolated as circles.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6511
diff changeset
12 import java.util.Collection;
6650485c2c9b Part fix for flys/issue1585: Use result from fitting to display interpolated W/Q points, too. TODO: Draw interpolated as circles.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6511
diff changeset
13 import java.util.Date;
3466
8160e62bbb3a Registered new output 'fix_vollmer_wq_curve' for the vollmer path of fixings analysis module; create required Facets for it after calculation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3462
diff changeset
14 import java.util.List;
8160e62bbb3a Registered new output 'fix_vollmer_wq_curve' for the vollmer path of fixings analysis module; create required Facets for it after calculation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3462
diff changeset
15
8160e62bbb3a Registered new output 'fix_vollmer_wq_curve' for the vollmer path of fixings analysis module; create required Facets for it after calculation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3462
diff changeset
16 import org.apache.log4j.Logger;
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
17 import org.dive4elements.artifactdatabase.state.Facet;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
18 import org.dive4elements.artifacts.CallContext;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
19 import org.dive4elements.artifacts.CallMeta;
5867
59ff03ff48f1 River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5863
diff changeset
20 import org.dive4elements.river.artifacts.D4EArtifact;
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
21 import org.dive4elements.river.artifacts.access.FixRealizingAccess;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
22 import org.dive4elements.river.artifacts.model.CalculationResult;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
23 import org.dive4elements.river.artifacts.model.CrossSectionWaterLineFacet;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
24 import org.dive4elements.river.artifacts.model.DataFacet;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
25 import org.dive4elements.river.artifacts.model.FacetTypes;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
26 import org.dive4elements.river.artifacts.model.ReportFacet;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
27 import org.dive4elements.river.artifacts.model.WQCKms;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
28 import org.dive4elements.river.artifacts.model.WQKms;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
29 import org.dive4elements.river.artifacts.model.fixings.FixRealizingCalculation;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
30 import org.dive4elements.river.artifacts.model.fixings.FixRealizingResult;
7525
6650485c2c9b Part fix for flys/issue1585: Use result from fitting to display interpolated W/Q points, too. TODO: Draw interpolated as circles.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6511
diff changeset
31 import org.dive4elements.river.artifacts.model.fixings.FixReferenceEventsFacet;
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
32 import org.dive4elements.river.artifacts.model.fixings.FixWQCurveFacet;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
33 import org.dive4elements.river.artifacts.model.fixings.FixWaterlevelFacet;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
34 import org.dive4elements.river.artifacts.resources.Resources;
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5730
diff changeset
35 import org.dive4elements.river.artifacts.states.DefaultState;
7525
6650485c2c9b Part fix for flys/issue1585: Use result from fitting to display interpolated W/Q points, too. TODO: Draw interpolated as circles.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6511
diff changeset
36 import org.dive4elements.river.utils.Formatter;
6650485c2c9b Part fix for flys/issue1585: Use result from fitting to display interpolated W/Q points, too. TODO: Draw interpolated as circles.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6511
diff changeset
37 import org.dive4elements.river.utils.UniqueDateFormatter;
3460
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
38
3413
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
39 /**
5646
14009b194871 Doc, Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5055
diff changeset
40 * State to compute the fixation realizing (vollmer) results.
14009b194871 Doc, Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5055
diff changeset
41 *
3413
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
42 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
43 */
3457
35ead8fadc36 Add waterlevel facet and longitudinal_section out for fixationrealization.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3414
diff changeset
44 public class FixRealizingCompute extends DefaultState implements FacetTypes {
3413
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
45
8202
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 7525
diff changeset
46 /** The log used in this class. */
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 7525
diff changeset
47 private static Logger log = Logger.getLogger(FixRealizingCompute.class);
3413
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
48
3466
8160e62bbb3a Registered new output 'fix_vollmer_wq_curve' for the vollmer path of fixings analysis module; create required Facets for it after calculation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3462
diff changeset
49 public static final String I18N_WQ_CURVE = "fix.vollmer.wq.curve";
8160e62bbb3a Registered new output 'fix_vollmer_wq_curve' for the vollmer path of fixings analysis module; create required Facets for it after calculation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3462
diff changeset
50
3413
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
51 /**
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
52 * The default constructor that initializes an empty State object.
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
53 */
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
54 public FixRealizingCompute() {
4c4d88c0af6a FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
55 }
3414
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
56
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
57 @Override
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
58 public Object computeAdvance(final D4EArtifact artifact, final String hash, final CallContext context, final List<Facet> facets, final Object old) {
8202
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 7525
diff changeset
59 log.debug("FixRealizingCompute.computeAdvance");
3414
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
60
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
61 CalculationResult res;
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
62
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
63 final FixRealizingAccess access = new FixRealizingAccess(artifact);
3414
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
64
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
65 if (old instanceof CalculationResult) {
5646
14009b194871 Doc, Cosmetics.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5055
diff changeset
66 res = (CalculationResult) old;
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
67 } else {
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
68 final FixRealizingCalculation calc = new FixRealizingCalculation(access);
3414
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
69 res = calc.calculate();
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
70 }
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
71
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
72 if (facets == null) {
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
73 return res;
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
74 }
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
75
3461
1481322efc02 FixA: Removed instanceof hack to fetch the WQKms of the fix realizations.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3460
diff changeset
76 if (res.getReport().hasProblems()) {
1481322efc02 FixA: Removed instanceof hack to fetch the WQKms of the fix realizations.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3460
diff changeset
77 facets.add(new ReportFacet());
1481322efc02 FixA: Removed instanceof hack to fetch the WQKms of the fix realizations.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3460
diff changeset
78 }
1481322efc02 FixA: Removed instanceof hack to fetch the WQKms of the fix realizations.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3460
diff changeset
79
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
80 final String id = getID();
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
81 final CallMeta meta = context.getMeta();
3775
d52c4ca93ffb More infrastructure stuff for the "Auslagerung extremer Wasserspiegellagen".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3466
diff changeset
82
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
83 final FixRealizingResult fixRes = (FixRealizingResult) res.getData();
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
84 final WQKms[] wqkms = fixRes != null ? fixRes.getWQKms() : new WQKms[0];
3460
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
85
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
86 for (int i = 0; i < wqkms.length; i++) {
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
87 String nameW = null;
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
88 String nameQ = null;
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
89
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
90 if (access.isQ()) {
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
91 nameQ = wqkms[i].getName();
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
92 nameW = "W(" + nameQ + ")";
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
93 } else {
3460
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
94 nameW = wqkms[i].getName();
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
95 nameQ = "Q(" + nameW + ")";
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
96 }
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
97
9360
ddcd52d239cd Outliers in fixation calculation are now shown within the other 'B' event themes and get a separate symbol (triangle).
gernotbelger
parents: 9342
diff changeset
98 facets.add(new FixWaterlevelFacet(i, FIX_WQ_LS, nameW, ComputeType.ADVANCE, hash, id));
ddcd52d239cd Outliers in fixation calculation are now shown within the other 'B' event themes and get a separate symbol (triangle).
gernotbelger
parents: 9342
diff changeset
99 facets.add(new FixWaterlevelFacet(i, LONGITUDINAL_W, nameW, ComputeType.ADVANCE, hash, id));
ddcd52d239cd Outliers in fixation calculation are now shown within the other 'B' event themes and get a separate symbol (triangle).
gernotbelger
parents: 9342
diff changeset
100 facets.add(new FixWaterlevelFacet(i, LONGITUDINAL_Q, nameQ, ComputeType.ADVANCE, hash, id));
ddcd52d239cd Outliers in fixation calculation are now shown within the other 'B' event themes and get a separate symbol (triangle).
gernotbelger
parents: 9342
diff changeset
101 facets.add(new CrossSectionWaterLineFacet(i, nameW));
3460
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
102
7525
6650485c2c9b Part fix for flys/issue1585: Use result from fitting to display interpolated W/Q points, too. TODO: Draw interpolated as circles.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6511
diff changeset
103 // XXX: THIS CAN NOT HAPPEN! REMOVE IT!
3460
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
104 if (wqkms[i] instanceof WQCKms) {
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
105 final String nameC = nameW.replace("benutzerdefiniert", "benutzerdefiniert [korrigiert]");
9360
ddcd52d239cd Outliers in fixation calculation are now shown within the other 'B' event themes and get a separate symbol (triangle).
gernotbelger
parents: 9342
diff changeset
106 facets.add(new FixWaterlevelFacet(i, DISCHARGE_LONGITUDINAL_C, nameC));
3460
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
107 }
3414
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
108 }
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
109
9360
ddcd52d239cd Outliers in fixation calculation are now shown within the other 'B' event themes and get a separate symbol (triangle).
gernotbelger
parents: 9342
diff changeset
110 if (fixRes != null && wqkms.length > 0) {
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
111 final DateFormat df = Formatter.getDateFormatter(context.getMeta(), "dd.MM.yyyy");
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
112 final DateFormat lf = Formatter.getDateFormatter(context.getMeta(), "dd.MM.yyyy'T'HH:mm");
7525
6650485c2c9b Part fix for flys/issue1585: Use result from fitting to display interpolated W/Q points, too. TODO: Draw interpolated as circles.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6511
diff changeset
113
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
114 final Collection<Date> reds = fixRes.getReferenceEventsDates();
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
115 final UniqueDateFormatter cf = new UniqueDateFormatter(df, lf, reds);
5730
4ce126aa130c FixRealizingCompute: Add one FixEventFacet per selected Event.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5702
diff changeset
116
8703
e4f9e2316e92 Avoid NPE: fixRes is null if wqkms.lenght==0.
Tom Gottfried <tom@intevation.de>
parents: 8202
diff changeset
117 int i = 0;
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
118 for (final Date d : reds) {
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
119 facets.add(new FixReferenceEventsFacet((1 << 9) | i, FIX_EVENTS, cf.format(d)));
8703
e4f9e2316e92 Avoid NPE: fixRes is null if wqkms.lenght==0.
Tom Gottfried <tom@intevation.de>
parents: 8202
diff changeset
120 i++;
e4f9e2316e92 Avoid NPE: fixRes is null if wqkms.lenght==0.
Tom Gottfried <tom@intevation.de>
parents: 8202
diff changeset
121 }
e4f9e2316e92 Avoid NPE: fixRes is null if wqkms.lenght==0.
Tom Gottfried <tom@intevation.de>
parents: 8202
diff changeset
122
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
123 facets.add(new DataFacet(CSV, "CSV data", ComputeType.ADVANCE, hash, id));
3466
8160e62bbb3a Registered new output 'fix_vollmer_wq_curve' for the vollmer path of fixings analysis module; create required Facets for it after calculation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3462
diff changeset
124
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
125 facets.add(new DataFacet(WST, "WST data", ComputeType.ADVANCE, hash, id));
3466
8160e62bbb3a Registered new output 'fix_vollmer_wq_curve' for the vollmer path of fixings analysis module; create required Facets for it after calculation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3462
diff changeset
126
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
127 facets.add(new DataFacet(PDF, "PDF data", ComputeType.ADVANCE, hash, id));
3460
d625f4d06b6a Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3459
diff changeset
128 }
3459
7485338aedff Also add Q-facets for fixrealization.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3457
diff changeset
129
9082
42c15e2f95fb 2.3.4.1.4 Wasserstand falsche Einheit
gernotbelger
parents: 8703
diff changeset
130 facets.add(new DataFacet(AT, "AT data", ComputeType.ADVANCE, hash, id));
5055
3b974a24a8e1 Fixed AT-Export in 'ausgel. WSPL'.
Raimund Renkert <rrenkert@intevation.de>
parents: 4866
diff changeset
131
9342
0c621beceb2f 2.3.4.2.5 Beseitigung des Fehlers beim Laden eines Projektes
gernotbelger
parents: 9082
diff changeset
132 if (fixRes != null)
0c621beceb2f 2.3.4.2.5 Beseitigung des Fehlers beim Laden eines Projektes
gernotbelger
parents: 9082
diff changeset
133 facets.add(new FixWQCurveFacet(0, Resources.getMsg(meta, I18N_WQ_CURVE, I18N_WQ_CURVE) + " (" + access.getFunction() + ")"));
3466
8160e62bbb3a Registered new output 'fix_vollmer_wq_curve' for the vollmer path of fixings analysis module; create required Facets for it after calculation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 3462
diff changeset
134
3414
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
135 return res;
1bb6fb621167 FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3413
diff changeset
136 }
9342
0c621beceb2f 2.3.4.2.5 Beseitigung des Fehlers beim Laden eines Projektes
gernotbelger
parents: 9082
diff changeset
137 }

http://dive4elements.wald.intevation.org