changeset 4637:3ab9ec5ca02f

Added methods to set single values.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 04 Dec 2012 15:38:21 +0100
parents 2904ecca4663
children 6122ee2ab67f
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedDifferencesResult.java
diffstat 1 files changed, 18 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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(),

http://dive4elements.wald.intevation.org