changeset 3265:c1f445b94d03

Cosmetics, doc. flys-artifacts/trunk@4905 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Sun, 08 Jul 2012 18:38:04 +0000
parents eb9f7fd77edf
children 43a2b1e7bc0d
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation2.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ComputedDischargeCurveState.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/LocationDistanceSelect.java flys-artifacts/src/main/java/de/intevation/flys/jfree/HasLabel.java
diffstat 6 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Sun Jul 08 16:20:09 2012 +0000
+++ b/flys-artifacts/ChangeLog	Sun Jul 08 18:38:04 2012 +0000
@@ -1,3 +1,12 @@
+2012-07-08	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/model/Calculation2.java,
+	  src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java,
+	  src/main/java/de/intevation/flys/artifacts/states/ComputedDischargeCurveState.java,
+	  src/main/java/de/intevation/flys/artifacts/states/LocationDistanceSelect.java,
+	  src/main/java/de/intevation/flys/jfree/HasLabel.java:
+	  Cosmetics, docs.
+
 2012-07-08	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/services/MapInfoService.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation2.java	Sun Jul 08 16:20:09 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation2.java	Sun Jul 08 18:38:04 2012 +0000
@@ -4,6 +4,8 @@
 
 import org.apache.log4j.Logger;
 
+
+/** ComputedDischargeCurve. */
 public class Calculation2
 extends      Calculation
 {
@@ -38,7 +40,7 @@
         WQKms wqkms = new WQKms(kms, qs, ws, String.valueOf(km));
 
         if (hasProblems()) {
-            logger.debug("found + "+numProblems()+" problems.");
+            logger.debug("found " + numProblems() + " problems.");
             wqkms.removeNaNs();
         }
 
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java	Sun Jul 08 16:20:09 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java	Sun Jul 08 18:38:04 2012 +0000
@@ -733,10 +733,15 @@
 
     /**
      * Interpolate W and Q values at a given km.
+     *
+     * @param errors where to store errors.
+     *
+     * @return double double array, first index Ws, second Qs.
      */
     public double [][] interpolateWQ(double km, Calculation errors) {
         return interpolateWQ(km, DEFAULT_Q_STEPS, errors);
     }
+    
 
     /**
      * Interpolate W and Q values at a given km.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ComputedDischargeCurveState.java	Sun Jul 08 16:20:09 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ComputedDischargeCurveState.java	Sun Jul 08 18:38:04 2012 +0000
@@ -42,6 +42,10 @@
     }
 
 
+    /**
+     * Get computed discharge curve data from cache (if available) or
+     * compute anew. Create Waterlevel and DataFacets.
+     */
     @Override
     public Object computeAdvance(
         FLYSArtifact artifact,
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/LocationDistanceSelect.java	Sun Jul 08 16:20:09 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/LocationDistanceSelect.java	Sun Jul 08 18:38:04 2012 +0000
@@ -41,6 +41,7 @@
     }
 
 
+    /** Validates the range (or location). */
     @Override
     public boolean validate(Artifact artifact)
     throws IllegalArgumentException
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/HasLabel.java	Sun Jul 08 16:20:09 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/HasLabel.java	Sun Jul 08 18:38:04 2012 +0000
@@ -1,5 +1,6 @@
 package de.intevation.flys.jfree;
 
+/** Interface to say something is labelled. */
 public interface HasLabel {
     public String getLabel();
     public void setLabel(String label);

http://dive4elements.wald.intevation.org