ingo@427: package de.intevation.gnv.math;
ingo@427:
ingo@429: import java.io.Serializable;
ingo@429:
sascha@433: import java.util.Comparator;
sascha@433:
ingo@427: /**
sascha@780: * @author Ingo Weinzierl
sascha@780: * @author Sascha L. Teichmann
ingo@427: */
ingo@429: public class HeightValue
ingo@429: implements Serializable
ingo@429: {
sascha@433: public static final Comparator INV_Z_COMPARATOR = new Comparator() {
sascha@433: public int compare(Object a, Object b) {
sascha@433: HeightValue ha = (HeightValue)a;
sascha@433: HeightValue hb = (HeightValue)b;
sascha@433: if (ha.z > hb.z) return -1;
sascha@433: if (ha.z < hb.z) return +1;
sascha@433: return 0;
sascha@433: }
sascha@433: };
ingo@427:
sascha@433: public double z;
sascha@433: public double v;
sascha@433: public int k;
ingo@427:
ingo@427: public HeightValue(double z, double v, int k) {
ingo@427: this.z = z;
ingo@427: this.v = v;
ingo@427: this.k = k;
ingo@427: }
ingo@427:
ingo@427: public double getZ() {
ingo@427: return z;
ingo@427: }
ingo@427:
ingo@427: public double getV() {
ingo@427: return v;
ingo@427: }
ingo@427:
ingo@427: public double getK() {
ingo@427: return k;
ingo@427: }
ingo@427: }
sascha@433: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: