changeset 3024:005f0130e6d6

FixA: Removed obsolete class. flys-artifacts/trunk@4591 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 05 Jun 2012 15:28:32 +0000
parents e19ff9086035
children 5d286d7e54cd
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/utils/EpsilonComparator.java
diffstat 2 files changed, 16 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Jun 05 15:03:11 2012 +0000
+++ b/flys-artifacts/ChangeLog	Tue Jun 05 15:28:32 2012 +0000
@@ -1,3 +1,8 @@
+2012-06-05	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/utils/EpsilonComparator.java:
+	  Removed. Obsolete now.
+
 2012-06-05	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/jfree/JFreeUtil.java:
@@ -14,6 +19,17 @@
 
 2012-06-05	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
+	* src/main/java/de/intevation/flys/artifacts/model/fixings/Fitting.java:
+	  Store the QWs that are actually used in the fitting as referenced.
+
+	* src/main/java/de/intevation/flys/artifacts/model/fixings/FixCalculation.java:
+	  Store the referenced QWs for each km. TODO: Use same index structure.
+
+	* src/main/java/de/intevation/flys/artifacts/model/fixings/FixResult.java:
+	  Store the referenced QWs, too.
+
+2012-06-05	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
 	* src/main/java/de/intevation/flys/artifacts/model/fixings/FixResults.java:
 	  Removed. Obsolete.
 
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/EpsilonComparator.java	Tue Jun 05 15:03:11 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-package de.intevation.flys.utils;
-
-import java.io.Serializable;
-
-import java.util.Comparator;
-
-public class EpsilonComparator
-implements   Serializable, Comparator<Double>
-{
-    public static final double EPSILON = 1e-5;
-
-    public static final EpsilonComparator INSTANCE =
-        new EpsilonComparator(EPSILON);
-
-    protected double epsilon;
-
-    public EpsilonComparator() {
-        this(EPSILON);
-    }
-
-    public EpsilonComparator(double epsilon) {
-        this.epsilon = Math.abs(epsilon);
-    }
-
-    private static final double value(Double x) {
-        return x != null ? x.doubleValue() : 0.0;
-    }
-
-    @Override
-    public int compare(Double a, Double b) {
-        double diff = value(a) - value(b);
-        if (diff < -epsilon) return -1;
-        return diff > epsilon ? +1 : 0;
-    }
-}
-// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org