[Dive4elements-commits] [PATCH 2 of 4] Added methods to set single values
Wald Commits
scm-commit at wald.intevation.org
Tue Dec 4 15:41:38 CET 2012
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1354631901 -3600
# Node ID 3ab9ec5ca02ffdf85a18fa9ff3318bbb126e9815
# Parent 2904ecca4663e5e150acb942319bdf2d54893311
Added methods to set single values.
diff -r 2904ecca4663 -r 3ab9ec5ca02f flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedDifferencesResult.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedDifferencesResult.java Tue Dec 04 15:35:47 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedDifferencesResult.java Tue Dec 04 15:38:21 2012 +0100
@@ -17,7 +17,8 @@
public BedDifferencesResult () {
kms = new TDoubleArrayList();
differences = new TDoubleArrayList();
-
+ height1 = new TDoubleArrayList();
+ height2 = new TDoubleArrayList();
}
public BedDifferencesResult(
@@ -40,6 +41,22 @@
return this.differences;
}
+ public void addKm(double value) {
+ this.kms.add(value);
+ }
+
+ public void addDifference(double value) {
+ this.differences.add(value);
+ }
+
+ public void addHeight1(double value) {
+ this.height1.add(value);
+ }
+
+ public void addHeight2(double value) {
+ this.height2.add(value);
+ }
+
public double[][] getDifferencesData() {
return new double[][] {
kms.toNativeArray(),
More information about the Dive4elements-commits
mailing list