changeset 5343:61f4d4164a30

Doc, cosmetics.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 20 Mar 2013 12:25:25 +0100
parents 7b119fa1e29f
children f987d25627aa
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeFinder.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeFinderFactory.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HistoricalDischargeDifferenceFacet.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HistoricalWQTimerange.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/AbstractChartService.java
diffstat 8 files changed, 21 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java	Wed Mar 20 11:42:10 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java	Wed Mar 20 12:25:25 2013 +0100
@@ -20,6 +20,8 @@
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 
+
+/** Generate Fixings Table chart. */
 public class FixingsOverview
 implements   Serializable
 {
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeFinder.java	Wed Mar 20 11:42:10 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeFinder.java	Wed Mar 20 12:25:25 2013 +0100
@@ -11,7 +11,7 @@
 
 import org.hibernate.type.StandardBasicTypes;
 
-/** Find Gauges and respective main values. */
+/** Find Gauges and respective Q main values. */
 public class GaugeFinder
 implements   Serializable
 {
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeFinderFactory.java	Wed Mar 20 11:42:10 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeFinderFactory.java	Wed Mar 20 12:25:25 2013 +0100
@@ -19,6 +19,7 @@
 
 import org.hibernate.type.StandardBasicTypes;
 
+/** Get GaugeFinders. */
 public class GaugeFinderFactory
 {
     private static Logger log = Logger.getLogger(GaugeFinderFactory.class);
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java	Wed Mar 20 11:42:10 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java	Wed Mar 20 12:25:25 2013 +0100
@@ -32,16 +32,21 @@
 
     protected int gaugeId;
 
+    /** Certain main value. */
     protected Map<String, Double> mainValues;
+
     protected List<Sector> sectors;
 
+
     public GaugeRange() {
     }
 
+
     public GaugeRange(double start, double end, int gaugeId) {
         this(start, end, null, gaugeId);
     }
 
+
     public GaugeRange(
         double start,
         double end,
@@ -55,6 +60,7 @@
         sectors = new ArrayList<Sector>(3);
     }
 
+
     public void addMainValue(String label, Double value) {
         int idx = label.indexOf('(');
         if (idx >= 0) {
@@ -63,6 +69,7 @@
         mainValues.put(label, value);
     }
 
+
     protected Double getMainValue(String label) {
         Double v = mainValues.get(label);
         if (v == null) {
@@ -92,6 +99,7 @@
         }
     }
 
+
     public double getSectorBorder(int sector) {
         for (Sector s: sectors) {
             if (s.sector == sector) {
@@ -101,6 +109,7 @@
         return Double.NaN;
     }
 
+
     public int classify(double value) {
         for (Sector sector: sectors) {
             if (value < sector.value) {
@@ -110,14 +119,17 @@
         return sectors.size();
     }
 
+
     public String getName() {
         return name;
     }
 
+
     public void setName(String name) {
         this.name = name;
     }
 
+
     public String toString() {
         StringBuilder sb = new StringBuilder("sectors: [");
 
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HistoricalDischargeDifferenceFacet.java	Wed Mar 20 11:42:10 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HistoricalDischargeDifferenceFacet.java	Wed Mar 20 12:25:25 2013 +0100
@@ -10,6 +10,7 @@
 
 
 /**
+ * Difference of historical discharge curve to ...
  * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
  */
 public class HistoricalDischargeDifferenceFacet
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HistoricalWQTimerange.java	Wed Mar 20 11:42:10 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HistoricalWQTimerange.java	Wed Mar 20 12:25:25 2013 +0100
@@ -9,7 +9,7 @@
 
 /**
  * A subclass of WQTimerange that stores besides W, Q and Timerange values
- * another double value.
+ * another double value (difference to something).
  *
  * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
  */
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java	Wed Mar 20 11:42:10 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java	Wed Mar 20 12:25:25 2013 +0100
@@ -6,10 +6,12 @@
 
 
 /**
+ * A collection of triples W,Q,Timerange.
  * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
  */
 public class WQTimerange extends WQ {
 
+    /** Used to sort &lt;w,q,timerange&gt; triples. */
     public static class TimerangeItem implements Comparable<TimerangeItem> {
         public double q;
         public double w;
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/AbstractChartService.java	Wed Mar 20 11:42:10 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/AbstractChartService.java	Wed Mar 20 12:25:25 2013 +0100
@@ -19,7 +19,7 @@
 import de.intevation.artifacts.GlobalContext;
 import de.intevation.artifacts.Service;
 
-
+/** Serve chart. */
 public abstract class AbstractChartService extends DefaultService {
 
     public static final int DEFAULT_WIDTH = 240;

http://dive4elements.wald.intevation.org