changeset 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 6ccdcb956c14
children b6f2ecaa6704
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, 37 insertions(+), 1 deletions(-) [+]
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;
+    }
+
 }
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/MeasurementStation.java	Mon Oct 29 09:12:16 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/MeasurementStation.java	Mon Oct 29 09:54:31 2012 +0100
@@ -1,6 +1,7 @@
 package de.intevation.flys.client.shared.model;
 
 import java.io.Serializable;
+import java.util.Date;
 
 /**
  * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a>
@@ -54,4 +55,14 @@
      * Returns the operator of the measurement station
      */
     String getOperator();
+
+    /**
+     * Returns the start time of the observation at this measurement station
+     */
+    Date getStartTime();
+
+    /**
+     * Returns the end time of the observation at this measurement station
+     */
+    Date getStopTime();
 }

http://dive4elements.wald.intevation.org