[Dive4elements-commits] [PATCH 3 of 4] ExtremeCompute: Add DataFacets (csv, wst, defunc pdf)

Wald Commits scm-commit at wald.intevation.org
Mon Nov 5 16:37:44 CET 2012


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1352129869 -3600
# Node ID bfb6464ecbb629cf73baa6ec8f737489f867b4c2
# Parent  7e7587c905ab06a1fcd50e5834d38d0c0ded1aa9
ExtremeCompute: Add DataFacets (csv, wst, defunc pdf).

diff -r 7e7587c905ab -r bfb6464ecbb6 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/extreme/ExtremeCompute.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/extreme/ExtremeCompute.java	Mon Nov 05 16:35:31 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/extreme/ExtremeCompute.java	Mon Nov 05 16:37:49 2012 +0100
@@ -9,6 +9,7 @@
 import de.intevation.flys.artifacts.access.ExtremeAccess;
 
 import de.intevation.flys.artifacts.model.CalculationResult;
+import de.intevation.flys.artifacts.model.DataFacet;
 import de.intevation.flys.artifacts.model.FacetTypes;
 import de.intevation.flys.artifacts.model.ReportFacet;
 import de.intevation.flys.artifacts.model.WaterlevelFacet;
@@ -84,15 +85,18 @@
             Facet q = new WaterlevelFacet(
                 i, LONGITUDINAL_Q, name, ComputeType.ADVANCE, id, hash);
 
-            // TODO add more facets like:
-            // csv, data, pdf wst facet, data facet
-            // furthermore, waterlevel
-            //facets.add(new CrossSectionWaterLineFacet(i, nameW));
-
             facets.add(w);
             facets.add(q);
         }
 
+
+        facets.add(
+            new DataFacet(CSV, "CSV data", ComputeType.ADVANCE, hash, id));
+        facets.add(
+            new DataFacet(PDF, "PDF data", ComputeType.ADVANCE, hash, id));
+        facets.add(
+            new DataFacet(WST, "WST data", ComputeType.ADVANCE, hash, id));
+
         facets.add(new ExtremeCurveFacet(Resources.getMsg(context.getMeta(),
                                          "extreme_wq_curve", "extreme_wq_curve")));
         facets.add(new ExtremeCurveFacet(Resources.getMsg(context.getMeta(),


More information about the Dive4elements-commits mailing list