changeset 1852:feef1121e800

Let Q Duration Curves enter life inactive. flys-artifacts/trunk@3196 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 09 Nov 2011 13:45:39 +0000
parents 67aa74efc024
children 5b2122a8bcbf
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java
diffstat 2 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Nov 09 13:17:55 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Nov 09 13:45:39 2011 +0000
@@ -1,3 +1,11 @@
+2011-11-09  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	Made Q Duration curve initially inactive.
+
+	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java
+	  (getInitialFacetActivity): Return 0 for DURATION_Q facets. Minor
+				     cosmetics.
+
 2011-11-09  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
 	Recommend mainvalues for Duration Curve Diagrams.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Wed Nov 09 13:17:55 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Wed Nov 09 13:45:39 2011 +0000
@@ -1311,17 +1311,18 @@
     @Override
     public int getInitialFacetActivity(String outputName, String facetName, int index) {
         String [] inactives = new String[] {
-                                            LONGITUDINAL_Q
-                                            };
+                                            LONGITUDINAL_Q,
+                                            DURATION_Q
+                                           };
 
         logger.debug("WINFOArtifact.active?: "
             + outputName
             + "/"
             + facetName);
 
-        if ((facetName.equals(COMPUTED_DISCHARGE_MAINVALUES_Q) ||
+        if (facetName.equals(COMPUTED_DISCHARGE_MAINVALUES_Q) ||
              facetName.equals(COMPUTED_DISCHARGE_MAINVALUES_W)
-             && outputName.equals("computed_discharge_curve")))
+             && outputName.equals("computed_discharge_curve"))
             {
                 return 0;
             }

http://dive4elements.wald.intevation.org