changeset 5339:1b73b731f7bd

Doc, debug fix.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 20 Mar 2013 08:50:51 +0100
parents 3aab1343285b
children 5f38d1c39ebd
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation6.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/HistoricalDischargeComputeState.java flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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@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();
 
--- 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();
 
--- 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");
         }
     }
 

http://dive4elements.wald.intevation.org