[PATCH 9 of 9] issue1512: spawn more facets for FlowVelocityMeasurementArtifact

Wald Commits scm-commit at wald.intevation.org
Fri Oct 11 12:05:21 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1381486501 -7200
# Node ID 1843023549dfbcd09b78aa7a9f18636e004f9d6d
# Parent  015e12aac2dcd4d203720aff6701ddda9ea39181
issue1512: spawn more facets for FlowVelocityMeasurementArtifact .

diff -r 015e12aac2dc -r 1843023549df artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java	Fri Oct 11 12:12:52 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java	Fri Oct 11 12:15:01 2013 +0200
@@ -130,10 +130,22 @@
             name += " - " + dateFormatter.format(
                 flowVelocityMeasurement.getDatetime());
 
-            Facet facet = new FlowVelocityMeasurementFacet(
+            // TODO naming/ i18N
+            Facet vFacet = new FlowVelocityMeasurementFacet(
                 FLOW_VELOCITY_MEASUREMENT,
-                name);
-            fs.add(facet);
+                "v " + name);
+            fs.add(vFacet);
+
+            Facet qFacet = new FlowVelocityMeasurementFacet(
+                FLOW_VELOCITY_DISCHARGE,
+                "q " + name);
+            fs.add(qFacet);
+
+            Facet wFacet = new FlowVelocityMeasurementFacet(
+                FLOW_VELOCITY_WATERLEVEL,
+                "w " + name);
+            fs.add(wFacet);
+
             addFacets(state.getID(), fs);
             addStringData(DATA_NAME, code);
         }


More information about the Dive4elements-commits mailing list