changeset 7507:a9eb777463e1

cosmetics, doc.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 01 Nov 2013 16:40:16 +0100
parents e79e231c864d
children 02841af5feff
files artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java artifacts/src/main/java/org/dive4elements/river/exports/process/SedimentLoadTAProcessor.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java	Fri Nov 01 16:38:03 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java	Fri Nov 01 16:40:16 2013 +0100
@@ -184,6 +184,7 @@
         }
     }
 
+
     /**
      * The MainValueArtifact can be set up with a document giving the
      * river and gauge.  This happens in context of GaugeDischargeArtifact.
@@ -221,7 +222,7 @@
 
 
     /**
-     * Create "the" state.
+     * Create "the" (one possible) state.
      */
     protected State spawnState() {
         state = new StaticState(STATIC_STATE_NAME);
@@ -377,6 +378,7 @@
      * @return list of Q main values.
      */
     public List<NamedDouble> getMainValuesQ(double[] kms) {
+        logger.debug("MainValuesArtifact.getMainValuesQ(d)");
         List<NamedDouble> filteredList = new ArrayList<NamedDouble>();
         boolean atGauge = false;
         Gauge gauge = getGauge(kms[0]);
@@ -409,9 +411,11 @@
 
     /**
      * Get a list of "Q" main values.
+     * @param atGauge whether is at gauge or needs interpolation.
      * @return list of Q main values.
      */
     public List<NamedDouble> getMainValuesQ(boolean atGauge) {
+        logger.debug("MainValuesArtifact.getMainValuesQ(b)");
         List<NamedDouble> filteredList = new ArrayList<NamedDouble>();
         Gauge gauge = getGauge();
         WstValueTable interpolator = WstValueTableFactory.getTable(RiverUtils.getRiver(this));

http://dive4elements.wald.intevation.org