Mercurial > dive4elements > gnv-client
changeset 427:a95aaeb206f7
Added data model classes to store information for interpolation.
gnv-artifacts/trunk@475 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 22 Dec 2009 13:10:56 +0000 |
parents | 3a0c0ad113d9 |
children | 88cd37c3b5e4 |
files | gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/math/HeightValue.java gnv-artifacts/src/main/java/de/intevation/gnv/math/XYColumn.java |
diffstat | 3 files changed, 76 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog Tue Dec 22 10:34:15 2009 +0000 +++ b/gnv-artifacts/ChangeLog Tue Dec 22 13:10:56 2009 +0000 @@ -1,3 +1,9 @@ +2009-12-22 Ingo Weinzierl <ingo.weinzierl@intevation.de> + + * src/main/java/de/intevation/gnv/math/HeightValue.java, + src/main/java/de/intevation/gnv/math/XYColumn.java: Added model classes to + store information for interpolation. + 2009-12-22 Sascha L. Teichmann <sascha.teichmann@intevation.de> * doc/conf/conf.xml: Added config section for palettes.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/math/HeightValue.java Tue Dec 22 13:10:56 2009 +0000 @@ -0,0 +1,33 @@ +package de.intevation.gnv.math; + +/** + * @author Ingo Weinzierl <ingo.weinzierl@intevation.de> + */ +public class HeightValue { + + private double z; + private double v; + private int k; + + + public HeightValue(double z, double v, int k) { + this.z = z; + this.v = v; + this.k = k; + } + + + public double getZ() { + return z; + } + + + public double getV() { + return v; + } + + + public double getK() { + return k; + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/math/XYColumn.java Tue Dec 22 13:10:56 2009 +0000 @@ -0,0 +1,37 @@ +package de.intevation.gnv.math; + +import java.util.ArrayList; +import java.util.List; + +/** + * @author Ingo Weinzierl <ingo.weinzierl@intevation.de> + */ +public class XYColumn { + + private double x; + private double y; + + private int i; + private int j; + + private List values; + + public XYColumn(double x, double y, int i, int j) { + this.x = x; + this.y = y; + this.i = i; + this.j = j; + + values = new ArrayList(); + } + + + public void add(HeightValue value) { + values.add(value); + } + + + public HeightValue[] getValues() { + return (HeightValue[]) values.toArray(new HeightValue[values.size()]); + } +}