[Dive4elements-commits] [PATCH 1 of 2] Doc, debug fix

Wald Commits scm-commit at wald.intevation.org
Wed Mar 20 09:43:47 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1363765851 -3600
# Node ID 1b73b731f7bdb6702859d9fdfc4e46899aa1efa9
# Parent  3aab1343285b51f5e6a4938e12fccefb4021437e
Doc, debug fix.

diff -r 3aab1343285b -r 1b73b731f7bd flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation6.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation6.java	Tue Mar 19 15:43:55 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation6.java	Wed Mar 20 08:50:51 2013 +0100
@@ -13,6 +13,7 @@
 
 
 /**
+ * Historical Discharge Calculation.
  * @author <a href="mailto:ingo.weinzierl at intevation.de">Ingo Weinzierl</a>
  */
 public class Calculation6 extends Calculation {
@@ -101,6 +102,7 @@
         return relevant;
     }
 
+    /** True if timerange of given discharge table overlaps with timerange. */
     protected boolean isDischargeTableRelevant(DischargeTable dt) {
         TimeInterval ti = dt.getTimeInterval();
 
@@ -173,6 +175,7 @@
             String.valueOf(km), dt.getTimeInterval());
     }
 
+    /** Without reference. */
     protected WQTimerange[] prepareSimpleData(List<DischargeTable> dts) {
         List<WQTimerange> wqts = new ArrayList<WQTimerange>(values.length);
 
@@ -220,6 +223,7 @@
         return wqts.toArray(new WQTimerange[wqts.size()]);
     }
 
+    /** With reference. */
     protected HistoricalWQTimerange[] prepareData(DischargeTable refTable,
         List<DischargeTable> dts) {
         List<HistoricalWQTimerange> wqts = new ArrayList<HistoricalWQTimerange>(
@@ -295,6 +299,7 @@
             .toArray(new HistoricalWQTimerange[wqts.size()]);
     }
 
+    /** Returns discharge table interval as Date[]. */
     protected Date[] prepareTimeInterval(DischargeTable dt) {
         TimeInterval ti = dt.getTimeInterval();
 
diff -r 3aab1343285b -r 1b73b731f7bd flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/HistoricalDischargeComputeState.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/HistoricalDischargeComputeState.java	Tue Mar 19 15:43:55 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/HistoricalDischargeComputeState.java	Wed Mar 20 08:50:51 2013 +0100
@@ -170,6 +170,7 @@
         }
     }
 
+    /** Create title for a Discharge-curve, including date. */
     protected String createDischargeCurveTitle(CallContext cc,
         HistoricalWQKms wqkms) {
         TimeInterval timeInterval = wqkms.getTimeInterval();
@@ -185,6 +186,8 @@
         }
     }
 
+
+    /** Create string for facets name/description. */
     protected String createFacetTitle(WQTimerange wqt) {
         String name = wqt.getName();
 
diff -r 3aab1343285b -r 1b73b731f7bd flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java	Tue Mar 19 15:43:55 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java	Wed Mar 20 08:50:51 2013 +0100
@@ -240,7 +240,7 @@
             }
         }
         else {
-            logger.debug("doAnalysisEventsOut: qwds == null");
+            logger.debug("doReferenceEventsOut: qwds == null");
         }
     }
 


More information about the Dive4elements-commits mailing list