changeset 724:90ee95945684

#164 Create the items for the adapted WQ state with range information for W and Q. flys-artifacts/trunk@2207 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 22 Jun 2011 14:47:22 +0000
parents 8900966ad945
children 51afeced47de
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Jun 22 10:54:30 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Jun 22 14:47:22 2011 +0000
@@ -1,3 +1,11 @@
+2011-06-22  Ingo Weinzierl <ingo@intevation.de>
+
+	  flys/issue164 (Berechnung 4: Umgekehrtes Berechnungsintervall führt zur)
+
+	* src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java:
+	  Create the items with range information for W and Q which allows the
+	  client to validate the user inserted values.
+
 2011-06-21  Sascha L. Teichmann <sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java	Wed Jun 22 10:54:30 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java	Wed Jun 22 14:47:22 2011 +0000
@@ -168,8 +168,11 @@
                 double from = lower < rangeFrom ? rangeFrom : lower;
                 double to   = upper > rangeTo   ? rangeTo   : upper;
 
+                double[] mmQ = determineMinMaxQ(gauge, wst);
+                double[] mmW = gauge.determineMinMaxW();
+
                 elements[idx++] = createItem(
-                    cr, new String[] { to + ";" + from, ""});
+                    cr, new String[] { to + ";" + from, ""}, mmQ, mmW);
             }
         }
 

http://dive4elements.wald.intevation.org