Mercurial > dive4elements > river
annotate flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixationCompute.java @ 3043:22da13d1b180
Added facet for derivate curve and fixed facet names.
flys-artifacts/trunk@4612 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 06 Jun 2012 14:58:25 +0000 |
parents | b388d888330d |
children | fa763b270e78 |
rev | line source |
---|---|
2651
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.flys.artifacts.states.fixation; |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
2 |
2784
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
3 import de.intevation.artifactdatabase.state.Facet; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
4 |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
5 import de.intevation.artifacts.CallContext; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
6 |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
7 import de.intevation.flys.artifacts.FLYSArtifact; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
8 import de.intevation.flys.artifacts.FixationArtifactAccess; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
9 |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
10 import de.intevation.flys.artifacts.model.CalculationResult; |
2992
0abdede5a0b8
FixA: Added facet to return delta w/t as CSV
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2784
diff
changeset
|
11 import de.intevation.flys.artifacts.model.DataFacet; |
0abdede5a0b8
FixA: Added facet to return delta w/t as CSV
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2784
diff
changeset
|
12 import de.intevation.flys.artifacts.model.FacetTypes; |
2784
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
13 import de.intevation.flys.artifacts.model.ReportFacet; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
14 |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
15 import de.intevation.flys.artifacts.model.fixings.FixCalculation; |
2651
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
17 import de.intevation.flys.artifacts.model.fixings.FixAvSectorFacet; |
3035
b388d888330d
Implemented facets and splitted up the event facet.Implemented facets and splitted up the event facet.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3028
diff
changeset
|
18 import de.intevation.flys.artifacts.model.fixings.FixAnalysisEventsFacet; |
3043
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
19 import de.intevation.flys.artifacts.model.fixings.FixAnalysisPeriodsFacet; |
3035
b388d888330d
Implemented facets and splitted up the event facet.Implemented facets and splitted up the event facet.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3028
diff
changeset
|
20 import de.intevation.flys.artifacts.model.fixings.FixReferenceEventsFacet; |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
21 import de.intevation.flys.artifacts.model.fixings.FixOutlierFacet; |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
22 import de.intevation.flys.artifacts.model.fixings.FixWQCurveFacet; |
3043
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
23 import de.intevation.flys.artifacts.model.fixings.FixDerivateFacet; |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
24 |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
25 import de.intevation.flys.artifacts.model.fixings.DateRange; |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
26 |
2651
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
27 import de.intevation.flys.artifacts.states.DefaultState; |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
28 |
2784
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
29 import java.util.List; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
30 |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
31 import org.apache.log4j.Logger; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
32 |
2651
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 /** |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
34 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
35 */ |
2992
0abdede5a0b8
FixA: Added facet to return delta w/t as CSV
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2784
diff
changeset
|
36 public class FixationCompute |
0abdede5a0b8
FixA: Added facet to return delta w/t as CSV
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2784
diff
changeset
|
37 extends DefaultState |
0abdede5a0b8
FixA: Added facet to return delta w/t as CSV
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2784
diff
changeset
|
38 implements FacetTypes |
0abdede5a0b8
FixA: Added facet to return delta w/t as CSV
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2784
diff
changeset
|
39 { |
2651
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
40 |
2784
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
41 /** The log used in this class. */ |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
42 private static Logger log = Logger.getLogger(FixationCompute.class); |
2651
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
43 |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
44 |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
45 /** |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
46 * The default constructor that initializes an empty State object. |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
47 */ |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
48 public FixationCompute() { |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
49 } |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
50 |
2784
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
51 @Override |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
52 public Object computeAdvance( |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
53 FLYSArtifact artifact, |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
54 String hash, |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
55 CallContext context, |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
56 List<Facet> facets, |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
57 Object old |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
58 ) { |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
59 log.debug("FixationCompute.computeAdvance"); |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
60 |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
61 CalculationResult res; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
62 |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
63 FixationArtifactAccess access = |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
64 new FixationArtifactAccess(artifact); |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
65 |
2784
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
66 if (old instanceof CalculationResult) { |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
67 res = (CalculationResult)old; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
68 } |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
69 else { |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
70 FixCalculation calc = |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
71 new FixCalculation(access); |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
72 |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
73 res = calc.calculate(); |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
74 } |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
75 |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
76 if (facets == null) { |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
77 return res; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
78 } |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
79 |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
80 if (res.getReport().hasProblems()) { |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
81 facets.add(new ReportFacet(ComputeType.ADVANCE, hash, id)); |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
82 } |
2992
0abdede5a0b8
FixA: Added facet to return delta w/t as CSV
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2784
diff
changeset
|
83 facets.add( |
0abdede5a0b8
FixA: Added facet to return delta w/t as CSV
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2784
diff
changeset
|
84 new DataFacet(CSV, "CSV data", ComputeType.ADVANCE, hash, id)); |
2784
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
85 |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
86 int count = access.getAnalysisPeriods().length; |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
87 for (int i = 0; i < count; i++) { |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
88 DateRange period = access.getAnalysisPeriods()[i]; |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
89 for (int j = access.getQSectorStart().intValue(); |
3043
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
90 j <= access.getQSectorEnd().intValue(); |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
91 j++) { |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
92 //TODO: replace j with q sector string. |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
93 String description = j + ": " + |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
94 period.getFrom().toString() + " - " + |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
95 period.getTo().toString(); |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
96 facets.add( |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
97 new FixAvSectorFacet(j - access.getQSectorStart().intValue(), |
3043
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
98 FIX_SECTOR_AVERAGE_DWT, |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
99 description)); |
3043
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
100 facets.add( |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
101 new FixAvSectorFacet(j - access.getQSectorStart().intValue(), |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
102 FIX_SECTOR_AVERAGE_LS, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
103 description)); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
104 facets.add( |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
105 new FixAvSectorFacet(j - access.getQSectorStart().intValue(), |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
106 FIX_SECTOR_AVERAGE_WQ, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
107 description)); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
108 |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
109 } |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
110 String eventDesc = period.getFrom().toString() + |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
111 " - " + |
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
112 period.getTo().toString(); |
3043
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
113 facets.add(new FixAnalysisEventsFacet(i, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
114 FIX_ANALYSIS_EVENTS_DWT, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
115 eventDesc)); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
116 facets.add(new FixAnalysisEventsFacet(i, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
117 FIX_ANALYSIS_EVENTS_LS, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
118 eventDesc)); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
119 facets.add(new FixAnalysisEventsFacet(i, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
120 FIX_ANALYSIS_EVENTS_WQ, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
121 eventDesc)); |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
122 } |
3043
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
123 facets.add(new FixReferenceEventsFacet(0, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
124 FIX_REFERENCE_EVENTS_DWT, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
125 "Referenceperiod")); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
126 facets.add(new FixReferenceEventsFacet(1, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
127 FIX_REFERENCE_EVENTS_LS, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
128 "Referenceperiod")); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
129 facets.add(new FixReferenceEventsFacet(2, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
130 FIX_REFERENCE_EVENTS_WQ, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
131 "Referenceperiod")); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
132 |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
133 facets.add(new FixAnalysisPeriodsFacet(0, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
134 FIX_ANALYSIS_PERIODS_DWT, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
135 "Analysis periods")); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
136 facets.add(new FixAnalysisPeriodsFacet(1, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
137 FIX_ANALYSIS_PERIODS_LS, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
138 "Analysis periods")); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
139 facets.add(new FixAnalysisPeriodsFacet(2, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
140 FIX_ANALYSIS_PERIODS_WQ, |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
141 "Analysis periods")); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
142 |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
143 facets.add(new FixWQCurveFacet("W/Q")); |
3043
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
144 facets.add(new FixOutlierFacet(FIX_OUTLIER, "Outlier")); |
22da13d1b180
Added facet for derivate curve and fixed facet names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3035
diff
changeset
|
145 facets.add(new FixDerivateFacet(FIX_DERIVATE, "Derivative")); |
3028
77b5f5a26700
Added facets for fix analysis.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
2992
diff
changeset
|
146 |
2784
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
147 return res; |
156214e3ca55
FixA: Call computing when reaching the compute state.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2699
diff
changeset
|
148 } |
2651
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
149 } |
9e9eb9d97548
Initial transition configuration and artifact/state stubs for fixation
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
150 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |