changeset 7290:1843023549df

issue1512: spawn more facets for FlowVelocityMeasurementArtifact .
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 11 Oct 2013 12:15:01 +0200
parents 015e12aac2dc
children ff0b99425dc9
files artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java
diffstat 1 files changed, 15 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }

http://dive4elements.wald.intevation.org