diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WW.java @ 2201:4e3bfa2d9584

"Bezugslinienverfahren": Add start and end km to WW to determine if kms are at gauges. flys-artifacts/trunk@3819 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 30 Jan 2012 09:57:59 +0000
parents 672a41efe222
children 9dc81827b187
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WW.java	Mon Jan 30 09:03:12 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WW.java	Mon Jan 30 09:57:59 2012 +0000
@@ -49,6 +49,9 @@
 
     protected TDoubleArrayList ws2;
 
+    protected double startKm;
+    protected double endKm;
+
     public WW() {
     }
 
@@ -65,10 +68,18 @@
         ws2 = new TDoubleArrayList(capacity);
     }
 
-    public WW(String name, double [] ws, double [] ws2) {
-        this.name = name;
-        this.ws  = new TDoubleArrayList(ws);
-        this.ws2 = new TDoubleArrayList(ws2);
+    public WW(
+        String    name, 
+        double    startKm, 
+        double [] ws, 
+        double    endKm,
+        double [] ws2
+    ) {
+        this.name    = name;
+        this.ws      = new TDoubleArrayList(ws);
+        this.ws2     = new TDoubleArrayList(ws2);
+        this.startKm = startKm;
+        this.endKm   = endKm;
     }
 
     public WW(String name, TDoubleArrayList ws, TDoubleArrayList ws2) {
@@ -102,6 +113,22 @@
         return dst;
     }
 
+    public double getStartKm() {
+        return startKm;
+    }
+
+    public void setStartKm(double startKm) {
+        this.startKm = startKm;
+    }
+
+    public double getEndKm() {
+        return endKm;
+    }
+
+    public void setEndKm(double endKm) {
+        this.endKm = endKm;
+    }
+
     @Override
     public void removeNaNs() {
         removeNaNs(new TDoubleArrayList [] { ws, ws2 });

http://dive4elements.wald.intevation.org