# HG changeset patch # User Sascha L. Teichmann # Date 1338910112 0 # Node ID 005f0130e6d6842f36ad95491292074b9d6d0f04 # Parent e19ff908603512bb2e8679489d62eee21b62e5a2 FixA: Removed obsolete class. flys-artifacts/trunk@4591 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r e19ff9086035 -r 005f0130e6d6 flys-artifacts/ChangeLog --- 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 + + * src/main/java/de/intevation/flys/utils/EpsilonComparator.java: + Removed. Obsolete now. + 2012-06-05 Felix Wolfsteller * src/main/java/de/intevation/flys/jfree/JFreeUtil.java: @@ -14,6 +19,17 @@ 2012-06-05 Sascha L. Teichmann + * 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 + * src/main/java/de/intevation/flys/artifacts/model/fixings/FixResults.java: Removed. Obsolete. diff -r e19ff9086035 -r 005f0130e6d6 flys-artifacts/src/main/java/de/intevation/flys/utils/EpsilonComparator.java --- 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 -{ - 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 :