[Dive4elements-commits] [PATCH 1 of 4] Add start and end time of an observation on a measurement station

Wald Commits scm-commit at wald.intevation.org
Mon Oct 29 10:05:10 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1351500871 -3600
# Node ID 82c1e911dd715df9158abc3fb719bc11c8e279a6
# Parent  6ccdcb956c14fd19502dfdb63fd3884269695308
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.

diff -r 6ccdcb956c14 -r 82c1e911dd71 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	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 at 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;
+    }
+
 }
diff -r 6ccdcb956c14 -r 82c1e911dd71 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	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 at 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();
 }


More information about the Dive4elements-commits mailing list