[PATCH 12 of 15] cosmetics, doc

Wald Commits scm-commit at wald.intevation.org
Fri Nov 1 18:12:02 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1383320416 -3600
# Node ID a9eb777463e13fc42db056af005fe411cb4ba496
# Parent  e79e231c864dfec968cd5b159abdb8aa2a548f72
cosmetics, doc.

diff -r e79e231c864d -r a9eb777463e1 artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java
--- 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));


More information about the Dive4elements-commits mailing list