comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/HeightValue.java @ 657:af3f56758f59

merged gnv-artifacts/0.5
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:13:53 +0200
parents 828df3ddb758
children c4156275c1e1
comparison
equal deleted inserted replaced
590:5f5f273c8566 657:af3f56758f59
1 package de.intevation.gnv.math;
2
3 import java.io.Serializable;
4
5 import java.util.Comparator;
6
7 /**
8 * @author Ingo Weinzierl <ingo.weinzierl@intevation.de>
9 * @author Sascha L. Teichmann <sascha.teichmann@intevation.de>
10 */
11 public class HeightValue
12 implements Serializable
13 {
14 public static final Comparator INV_Z_COMPARATOR = new Comparator() {
15 public int compare(Object a, Object b) {
16 HeightValue ha = (HeightValue)a;
17 HeightValue hb = (HeightValue)b;
18 if (ha.z > hb.z) return -1;
19 if (ha.z < hb.z) return +1;
20 return 0;
21 }
22 };
23
24 public double z;
25 public double v;
26 public int k;
27
28 public HeightValue(double z, double v, int k) {
29 this.z = z;
30 this.v = v;
31 this.k = k;
32 }
33
34 public double getZ() {
35 return z;
36 }
37
38 public double getV() {
39 return v;
40 }
41
42 public double getK() {
43 return k;
44 }
45 }
46 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

http://dive4elements.wald.intevation.org