[Dive4elements-commits] [PATCH 6 of 8] Add model for MeasurementStation client side
Wald Commits
scm-commit at wald.intevation.org
Wed Oct 24 17:09:26 CEST 2012
# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1351090673 -7200
# Node ID fc742c039f3045340488e2fb5c25db2f87e653b4
# Parent 5da024c2af624030b635737f1aa954331dac716e
Add model for MeasurementStation client side
Add a client mode representing the MeasurementStation
diff -r 5da024c2af62 -r fc742c039f30 flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java Wed Oct 24 16:57:53 2012 +0200
@@ -0,0 +1,93 @@
+package de.intevation.flys.client.shared.model;
+
+/**
+ * @author <a href="mailto:bjoern.ricks at intevation.de">Björn Ricks</a>
+ */
+public class DefaultMeasurementStation implements MeasurementStation {
+
+ private String name;
+ private Double start;
+ private Double end;
+ private Double station;
+ private String rivername;
+ private String measurementtype;
+ private String riverside;
+
+ public DefaultMeasurementStation() {
+ }
+
+ public DefaultMeasurementStation(
+ String rivername,
+ String name,
+ Double station,
+ Double start,
+ Double end,
+ String riverside,
+ String measurementtype)
+ {
+ this.rivername = rivername;
+ this.name = name;
+ this.station = station;
+ this.start = start;
+ this.end = end;
+ this.riverside = riverside;
+ this.measurementtype = measurementtype;
+ }
+
+ /**
+ * Returns the name of the measurement station
+ */
+ @Override
+ public String getName() {
+ return this.name;
+ }
+
+ /**
+ * Returns the start KM of the measurement station or null if not available
+ */
+ @Override
+ public Double getKmStart() {
+ return this.start;
+ }
+
+ /**
+ * Returns the end KM of the measurement station or null if not available
+ */
+ @Override
+ public Double getKmEnd() {
+ return this.end;
+ }
+
+ /**
+ * Returns the river to which this measurement station belongs
+ */
+ @Override
+ public String getRiverName() {
+ return this.rivername;
+ }
+
+ /**
+ * Returns the type of the measurement station
+ */
+ @Override
+ public String getMeasurementType() {
+ return this.measurementtype;
+ }
+
+ /**
+ * Returns the station km of this measurement station
+ */
+ @Override
+ public Double getStation() {
+ return this.station;
+ }
+
+
+ /**
+ * Returns the side of the river where this measurement station belongs
+ */
+ @Override
+ public String getRiverSide() {
+ return this.riverside;
+ }
+}
diff -r 5da024c2af62 -r fc742c039f30 flys-client/src/main/java/de/intevation/flys/client/shared/model/MeasurementStation.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/MeasurementStation.java Wed Oct 24 16:57:53 2012 +0200
@@ -0,0 +1,45 @@
+package de.intevation.flys.client.shared.model;
+
+import java.io.Serializable;
+
+/**
+ * @author <a href="mailto:bjoern.ricks at intevation.de">Björn Ricks</a>
+ */
+public interface MeasurementStation extends Serializable {
+
+ /**
+ * Returns the name of the measurement station
+ */
+ String getName();
+
+ /**
+ * Returns the start KM of the measurement station or null if not available
+ */
+ Double getKmStart();
+
+ /**
+ * Returns the end KM of the measurement station or null if not available
+ */
+ Double getKmEnd();
+
+ /**
+ * Returns the station km of the measurement station or null if not
+ * available
+ */
+ Double getStation();
+
+ /**
+ * Returns the river to which this measurement station belongs
+ */
+ String getRiverName();
+
+ /**
+ * Returns the side of the river which this measurement station belongs
+ */
+ String getRiverSide();
+
+ /**
+ * Returns the type of the measurement station
+ */
+ String getMeasurementType();
+}
More information about the Dive4elements-commits
mailing list