[Dive4elements-commits] [PATCH 07 of 10] FixRealizingCompute: Add one FixEventFacet per selected Event
Wald Commits
scm-commit at wald.intevation.org
Tue Apr 16 16:17:24 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1366108974 -7200
# Node ID 4ce126aa130c60fc88f484d3a44172ef93c451bb
# Parent 187762f5e90511ec6f7f8581b03ad83e337c9a42
FixRealizingCompute: Add one FixEventFacet per selected Event.
diff -r 187762f5e905 -r 4ce126aa130c flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java Tue Apr 16 12:41:02 2013 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java Tue Apr 16 12:42:54 2013 +0200
@@ -16,9 +16,11 @@
import de.intevation.flys.artifacts.model.ReportFacet;
import de.intevation.flys.artifacts.model.WQCKms;
import de.intevation.flys.artifacts.model.WQKms;
+import de.intevation.flys.artifacts.model.WQKmsFactory;
import de.intevation.flys.artifacts.model.fixings.FixOutlierFacet;
import de.intevation.flys.artifacts.model.fixings.FixRealizingCalculation;
import de.intevation.flys.artifacts.model.fixings.FixRealizingResult;
+import de.intevation.flys.artifacts.model.fixings.FixEventFacet;
import de.intevation.flys.artifacts.model.fixings.FixReferenceEventsFacet;
import de.intevation.flys.artifacts.model.fixings.FixWQCurveFacet;
import de.intevation.flys.artifacts.model.fixings.FixWaterlevelFacet;
@@ -122,6 +124,13 @@
}
}
+ // Add one facet per event.
+ int i = 0;
+ for (int event: access.getEvents()) {
+ facets.add(new FixEventFacet(i, FIX_EVENTS, WQKmsFactory.getWQKmsName(event)));
+ i++;
+ }
+
if (wqkms.length > 0) {
facets.add(
new DataFacet(CSV, "CSV data", ComputeType.ADVANCE, hash, id));
More information about the Dive4elements-commits
mailing list