changeset 3053:bb576facbe50

Use cache. flys-artifacts/trunk@4627 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 07 Jun 2012 20:53:49 +0000
parents acd89b7970dd
children 8bd4cf11c25a
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java
diffstat 2 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Jun 07 20:48:13 2012 +0000
+++ b/flys-artifacts/ChangeLog	Thu Jun 07 20:53:49 2012 +0000
@@ -1,3 +1,8 @@
+2012-06-07	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java:
+	  Enable caching.
+
 2012-06-07	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* doc/conf/meta-data.xml: Simplified choice of gauges for discharge c.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java	Thu Jun 07 20:48:13 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java	Thu Jun 07 20:53:49 2012 +0000
@@ -87,8 +87,6 @@
     ) {
         logger.debug("GaugeDischargeState.computeInit()");
 
-        // TODO caching, / CalculationResultUsage
-
         GaugeDischargeFacet facet = new GaugeDischargeFacet(
             0,
             DISCHARGE_CURVE,
@@ -117,12 +115,13 @@
 
             CalculationResult res;
 
-            /*if (old instanceof CalculationResult) {
+
+            if (old instanceof CalculationResult) {
                 res = (CalculationResult) old;
             }
-            else {*/
+            else {
                 res = dischargeArtifact.getDischargeCurveData();
-            //}
+            }
 
             WQKms[] wqkms = (WQKms[]) res.getData();
 

http://dive4elements.wald.intevation.org