Mercurial > dive4elements > river
annotate flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java @ 5380:75371c9ef472
I1174: Changed label for some themes in fix analysis.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 22 Mar 2013 11:55:14 +0100 |
parents | 3b974a24a8e1 |
children | 14009b194871 |
rev | line source |
---|---|
3413
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.flys.artifacts.states.fixation; |
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
2 |
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
|
3 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
|
4 |
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
|
5 import org.apache.log4j.Logger; |
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
|
6 |
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
|
7 import de.intevation.artifactdatabase.state.Facet; |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
8 import de.intevation.artifacts.CallContext; |
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
|
9 import de.intevation.artifacts.CallMeta; |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
10 import de.intevation.flys.artifacts.FLYSArtifact; |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
11 import de.intevation.flys.artifacts.access.FixRealizingAccess; |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
12 import de.intevation.flys.artifacts.model.CalculationResult; |
4509
acd7437f66f0
FixRealizingCompute: Add CrossSectionWaterLineFacet in FixRealizingState.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
3775
diff
changeset
|
13 import de.intevation.flys.artifacts.model.CrossSectionWaterLineFacet; |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
14 import de.intevation.flys.artifacts.model.DataFacet; |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
15 import de.intevation.flys.artifacts.model.FacetTypes; |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
16 import de.intevation.flys.artifacts.model.ReportFacet; |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
17 import de.intevation.flys.artifacts.model.WQCKms; |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
18 import de.intevation.flys.artifacts.model.WQKms; |
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
|
19 import de.intevation.flys.artifacts.model.fixings.FixOutlierFacet; |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
20 import de.intevation.flys.artifacts.model.fixings.FixRealizingCalculation; |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
21 import de.intevation.flys.artifacts.model.fixings.FixRealizingResult; |
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
|
22 import de.intevation.flys.artifacts.model.fixings.FixReferenceEventsFacet; |
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
|
23 import de.intevation.flys.artifacts.model.fixings.FixWQCurveFacet; |
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
|
24 import de.intevation.flys.artifacts.model.fixings.FixWaterlevelFacet; |
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
|
25 import de.intevation.flys.artifacts.resources.Resources; |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
26 import de.intevation.flys.artifacts.states.DefaultState; |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
27 |
3413
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
28 /** |
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
29 * @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
|
30 */ |
3457
35ead8fadc36
Add waterlevel facet and longitudinal_section out for fixationrealization.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
3414
diff
changeset
|
31 public class FixRealizingCompute extends DefaultState implements FacetTypes { |
3413
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
32 |
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
33 /** The logger used in this class. */ |
3457
35ead8fadc36
Add waterlevel facet and longitudinal_section out for fixationrealization.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
3414
diff
changeset
|
34 private static Logger logger = Logger.getLogger(FixRealizingCompute.class); |
3413
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
35 |
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
|
36 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
|
37 |
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
|
38 public static final String I18N_WQ_OUTLIER = "fix.vollmer.wq.outliers"; |
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
|
39 |
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
|
40 public static final String I18N_WQ_EVENTS = "fix.vollmer.wq.events"; |
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
|
41 |
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
|
42 |
3413
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
43 /** |
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
44 * 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
|
45 */ |
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
46 public FixRealizingCompute() { |
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
47 } |
3414
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
48 |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
49 @Override |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
50 public Object computeAdvance( |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
51 FLYSArtifact artifact, |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
52 String hash, |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
53 CallContext context, |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
54 List<Facet> facets, |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
55 Object old |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
56 ) { |
3457
35ead8fadc36
Add waterlevel facet and longitudinal_section out for fixationrealization.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
3414
diff
changeset
|
57 logger.debug("FixRealizingCompute.computeAdvance"); |
3414
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
58 |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
59 CalculationResult res; |
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 FixRealizingAccess access = |
4866
acfd48384835
Changed data field names in fix analsis to ld_from, ld_to, ld step.
Raimund Renkert <rrenkert@intevation.de>
parents:
4509
diff
changeset
|
62 new FixRealizingAccess(artifact, context); |
3414
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
63 |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
64 if (old instanceof CalculationResult) { |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
65 res = (CalculationResult)old; |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
66 } |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
67 else { |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
68 FixRealizingCalculation calc = new FixRealizingCalculation(access); |
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 |
3775
d52c4ca93ffb
More infrastructure stuff for the "Auslagerung extremer Wasserspiegellagen".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3466
diff
changeset
|
80 String id = getID(); |
d52c4ca93ffb
More infrastructure stuff for the "Auslagerung extremer Wasserspiegellagen".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3466
diff
changeset
|
81 CallMeta meta = context.getMeta(); |
d52c4ca93ffb
More infrastructure stuff for the "Auslagerung extremer Wasserspiegellagen".
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3466
diff
changeset
|
82 |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
83 FixRealizingResult fixRes = (FixRealizingResult) res.getData(); |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
84 WQKms [] wqkms = fixRes != null ? fixRes.getWQKms() : new WQKms[0]; |
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 + ")"; |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
93 } |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
94 else { |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
95 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
|
96 nameQ = "Q(" + nameW + ")"; |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
97 } |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
98 |
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
|
99 Facet w = new FixWaterlevelFacet( |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
100 i, LONGITUDINAL_W, nameW); |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
101 |
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
|
102 Facet q = new FixWaterlevelFacet( |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
103 i, LONGITUDINAL_Q, nameQ); |
4509
acd7437f66f0
FixRealizingCompute: Add CrossSectionWaterLineFacet in FixRealizingState.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
3775
diff
changeset
|
104 Facet csFacet = 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
|
105 |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
106 facets.add(w); |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
107 facets.add(q); |
4509
acd7437f66f0
FixRealizingCompute: Add CrossSectionWaterLineFacet in FixRealizingState.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
3775
diff
changeset
|
108 facets.add(csFacet); |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
109 |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
110 if (wqkms[i] instanceof WQCKms) { |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
111 String nameC = nameW.replace( |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
112 "benutzerdefiniert", |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
113 "benutzerdefiniert [korrigiert]"); |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
114 |
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
|
115 Facet c = new FixWaterlevelFacet( |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
116 i, DISCHARGE_LONGITUDINAL_C, nameC); |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
117 |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
118 facets.add(c); |
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
119 } |
3414
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
120 } |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
121 |
3460
d625f4d06b6a
Create proper facets for Ws and Qs in FixRealizingCompute state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
3459
diff
changeset
|
122 if (wqkms.length > 0) { |
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
|
123 facets.add( |
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 new DataFacet(CSV, "CSV data", ComputeType.ADVANCE, hash, id)); |
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
|
125 |
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 facets.add( |
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
|
127 new DataFacet(WST, "WST data", ComputeType.ADVANCE, hash, id)); |
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
|
128 |
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
|
129 facets.add( |
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
|
130 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
|
131 } |
3459
7485338aedff
Also add Q-facets for fixrealization.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
3457
diff
changeset
|
132 |
5055
3b974a24a8e1
Fixed AT-Export in 'ausgel. WSPL'.
Raimund Renkert <rrenkert@intevation.de>
parents:
4866
diff
changeset
|
133 facets.add( |
3b974a24a8e1
Fixed AT-Export in 'ausgel. WSPL'.
Raimund Renkert <rrenkert@intevation.de>
parents:
4866
diff
changeset
|
134 new DataFacet(AT, "AT data", ComputeType.ADVANCE, hash, id)); |
3b974a24a8e1
Fixed AT-Export in 'ausgel. WSPL'.
Raimund Renkert <rrenkert@intevation.de>
parents:
4866
diff
changeset
|
135 |
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
|
136 facets.add(new FixWQCurveFacet( |
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
|
137 0, Resources.getMsg(meta, I18N_WQ_CURVE, I18N_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
|
138 |
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
|
139 facets.add(new FixReferenceEventsFacet( |
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
|
140 0, |
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
|
141 FIX_REFERENCE_EVENTS_WQ, |
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
|
142 Resources.getMsg(meta, I18N_WQ_EVENTS, I18N_WQ_EVENTS))); |
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
|
143 |
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
|
144 facets.add(new FixOutlierFacet( |
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
|
145 0, |
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
|
146 FIX_OUTLIER, |
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
|
147 Resources.getMsg(meta, I18N_WQ_OUTLIER, I18N_WQ_OUTLIER))); |
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
|
148 |
3414
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
149 return res; |
1bb6fb621167
FixA: Added stub for the "Ausgelagerte Wasserspiegellagen" calculation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3413
diff
changeset
|
150 } |
3413
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
151 } |
4c4d88c0af6a
FixA: Renamed FixationVolmerCompute to FixRealizingCompute.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
152 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |