diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearResult.java @ 8273:5c3b36b519d0

Add metadata to bedheight facets in bed height differences.
author "Tom Gottfried <tom@intevation.de>"
date Tue, 16 Sep 2014 11:33:08 +0200
parents 856701739443
children 8a14605fb64a
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearResult.java	Mon Sep 15 15:38:16 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearResult.java	Tue Sep 16 11:33:08 2014 +0200
@@ -24,6 +24,8 @@
     protected Integer end;
     protected String nameFirst;
     protected String nameSecond;
+    protected int idFirst;
+    protected int idSecond;
 
     public BedDiffYearResult () {
         super();
@@ -54,7 +56,9 @@
         Integer start,
         Integer end,
         String nameFirst,
-        String nameSecond
+        String nameSecond,
+        int idFirst,
+        int idSecond
     ) {
         super(kms, differences, heights1, heights2);
         this.diffsPerYear = diffsPerYear;
@@ -66,6 +70,8 @@
         this.end = end;
         this.nameFirst = nameFirst;
         this.nameSecond = nameSecond;
+        this.idFirst = idFirst;
+        this.idSecond = idSecond;
     }
 
     public TDoubleArrayList getBedHeights() {
@@ -114,6 +120,16 @@
         return this.nameSecond;
     }
 
+    /** Get id of the first BedHeight (minuend). */
+    public int getIdFirst() {
+        return this.idFirst;
+    }
+
+    /** Get id of the second BedHeight (subtrahend). */
+    public int getIdSecond() {
+        return this.idSecond;
+    }
+
     public void addMorphWidth1(double value) {
         this.morphWidth1.add(value);
     }

http://dive4elements.wald.intevation.org