changeset 4325:7320830987a3

Add the gauge name to the MeasurementStation client class The reference gauge should be displayed in the measurement station info panel.
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 30 Oct 2012 13:02:45 +0100
parents 4980659b2f22
children 87362ba26c72
files flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java flys-client/src/main/java/de/intevation/flys/client/shared/model/MeasurementStation.java
diffstat 2 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java	Tue Oct 30 12:49:17 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java	Tue Oct 30 13:02:45 2012 +0100
@@ -19,6 +19,7 @@
     private String  moperator;
     private Date    starttime;
     private Date    stoptime;
+    private String  gaugename;
 
     public DefaultMeasurementStation() {
     }
@@ -35,7 +36,8 @@
             String  measurementtype,
             String  moperator,
             Date    starttime,
-            Date    stoptime)
+            Date    stoptime,
+            String  gaugename)
     {
         this.rivername       = rivername;
         this.name            = name;
@@ -49,6 +51,7 @@
         this.moperator       = moperator;
         this.starttime       = starttime;
         this.stoptime        = stoptime;
+        this.gaugename       = gaugename;
     }
 
     /**
@@ -145,4 +148,12 @@
         return this.stoptime;
     }
 
+    /**
+     * Returns the name of the gauge in reference to this measurement station
+     */
+    @Override
+    public String getGaugeName() {
+        return this.gaugename;
+    }
+
 }
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/MeasurementStation.java	Tue Oct 30 12:49:17 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/MeasurementStation.java	Tue Oct 30 13:02:45 2012 +0100
@@ -65,4 +65,9 @@
      * Returns the end time of the observation at this measurement station
      */
     Date getStopTime();
+
+    /**
+     * Returns the name of the gauge in reference to this measurement station
+     */
+    String getGaugeName();
 }

http://dive4elements.wald.intevation.org