[Dive4elements-commits] [PATCH 2 of 5] Add the gauge name to the MeasurementStation client class

Wald Commits scm-commit at wald.intevation.org
Tue Oct 30 13:05:41 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1351598565 -3600
# Node ID 7320830987a398cc8fecd999523993535bb9cfa9
# Parent  4980659b2f226522a1d986b54870df6638ee0e1d
Add the gauge name to the MeasurementStation client class

The reference gauge should be displayed in the measurement station info panel.

diff -r 4980659b2f22 -r 7320830987a3 flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java
--- 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;
+    }
+
 }
diff -r 4980659b2f22 -r 7320830987a3 flys-client/src/main/java/de/intevation/flys/client/shared/model/MeasurementStation.java
--- 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();
 }


More information about the Dive4elements-commits mailing list