diff gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultMeasurementStation.java @ 8417:71144e25a6c9

Add comment to measurement stations info.
author Tom Gottfried <tom@intevation.de>
date Thu, 16 Oct 2014 13:39:22 +0200
parents 17db08570637
children
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultMeasurementStation.java	Thu Oct 16 11:15:09 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultMeasurementStation.java	Thu Oct 16 13:39:22 2014 +0200
@@ -26,6 +26,7 @@
     private Date    starttime;
     private Date    stoptime;
     private String  gaugename;
+    private String  comment;
 
     public DefaultMeasurementStation() {
     }
@@ -41,8 +42,9 @@
             String  moperator,
             Date    starttime,
             Date    stoptime,
-            String  gaugename)
-    {
+            String  gaugename,
+            String  comment
+    ) {
         this.rivername       = rivername;
         this.name            = name;
         this.start           = start;
@@ -54,6 +56,7 @@
         this.starttime       = starttime;
         this.stoptime        = stoptime;
         this.gaugename       = gaugename;
+        this.comment         = comment;
     }
 
     /**
@@ -144,4 +147,11 @@
         return this.gaugename;
     }
 
+    /**
+     * Returns the comment to this measurement station
+     */
+    @Override
+    public String getComment() {
+        return this.comment;
+    }
 }

http://dive4elements.wald.intevation.org