changeset 5733:b7d631e45ee7

FixCalculation: Cosmetics, renamed function, doc.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 16 Apr 2013 12:45:51 +0200
parents fdd2647d1912
children 06adfba17091
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixCalculation.java
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixCalculation.java	Tue Apr 16 12:44:22 2013 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixCalculation.java	Tue Apr 16 12:45:51 2013 +0200
@@ -237,7 +237,9 @@
         return sb.toString();
     }
 
-    protected Filter createFilter() {
+
+    /** Create an ID Filter to accept only the chosen event ids. */
+    protected Filter createEventIDFilter() {
         return new IdsFilter(events);
     }
 
@@ -247,7 +249,7 @@
     ) {
         FixingsColumnFactory fcf = FixingsColumnFactory.getInstance();
 
-        Filter filter = createFilter();
+        Filter filter = createEventIDFilter();
 
         List<Fixing.Column> metas = overview.filter(null, filter);
 
@@ -267,6 +269,7 @@
         return columns;
     }
 
+    // Fit a function to the given points from fixation.
     protected FitResult doFitting(
         FixingsOverview overview,
         ColumnCache     cc,

http://dive4elements.wald.intevation.org