diff flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultGaugeInfo.java @ 3826:7a34af684ed4

Add station info to the gauges flys-client/trunk@5521 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Wed, 19 Sep 2012 12:41:48 +0000
parents 4e33aa341e51
children dc505433173f
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultGaugeInfo.java	Wed Sep 19 07:59:35 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultGaugeInfo.java	Wed Sep 19 12:41:48 2012 +0000
@@ -15,6 +15,7 @@
     private Double minw;
     private Double maxw;
     private boolean kmup;
+    private Double station;
 
     public DefaultGaugeInfo() {
     }
@@ -22,6 +23,7 @@
     public DefaultGaugeInfo(
             String name,
             boolean kmup,
+            Double station,
             Double start,
             Double end,
             Double datum,
@@ -31,15 +33,16 @@
             Double minw,
             Double maxw)
     {
-        this.name  = name;
-        this.start = start;
-        this.end   = end;
-        this.datum = datum;
-        this.aeo   = aeo;
-        this.minq  = minq;
-        this.maxq  = maxq;
-        this.minw  = minw;
-        this.maxw  = maxw;
+        this.name    = name;
+        this.station = station;
+        this.start   = start;
+        this.end     = end;
+        this.datum   = datum;
+        this.aeo     = aeo;
+        this.minq    = minq;
+        this.maxq    = maxq;
+        this.minw    = minw;
+        this.maxw    = maxw;
     }
     /**
      * Returns the name of the gauge
@@ -107,4 +110,11 @@
     public boolean isKmUp() {
         return this.kmup;
     }
+
+    /**
+     * Returns the station km of the gauge or null if not available
+     */
+    public Double getStation() {
+        return this.station;
+    }
 }

http://dive4elements.wald.intevation.org