diff flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java @ 4287:82c1e911dd71

Add start and end time of an observation on a measurement station Add start and end time of an observation on a measurement station to the MeasurementStation classes.
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 29 Oct 2012 09:54:31 +0100
parents d5d68c5bf085
children 7320830987a3
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java	Mon Oct 29 09:12:16 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java	Mon Oct 29 09:54:31 2012 +0100
@@ -1,5 +1,7 @@
 package de.intevation.flys.client.shared.model;
 
+import java.util.Date;
+
 /**
  * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a>
  */
@@ -15,6 +17,8 @@
     private Integer id;
     private boolean kmup;
     private String  moperator;
+    private Date    starttime;
+    private Date    stoptime;
 
     public DefaultMeasurementStation() {
     }
@@ -29,7 +33,9 @@
             boolean kmup,
             String  riverside,
             String  measurementtype,
-            String  moperator)
+            String  moperator,
+            Date    starttime,
+            Date    stoptime)
     {
         this.rivername       = rivername;
         this.name            = name;
@@ -41,6 +47,8 @@
         this.id              = id;
         this.kmup            = kmup;
         this.moperator       = moperator;
+        this.starttime       = starttime;
+        this.stoptime        = stoptime;
     }
 
     /**
@@ -120,4 +128,21 @@
     public String getOperator() {
         return this.moperator;
     }
+
+    /**
+     * Returns the start time of the observation at this measurement station
+     */
+    @Override
+    public Date getStartTime() {
+        return this.starttime;
+    }
+
+    /**
+     * Returns the end time of the observation at this measurement station
+     */
+    @Override
+    public Date getStopTime() {
+        return this.stoptime;
+    }
+
 }

http://dive4elements.wald.intevation.org