Mercurial > dive4elements > river
changeset 4265:d5d68c5bf085
Add id, kmup and operator to MeasurementStation model
Also add getters for these variables
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 26 Oct 2012 12:13:38 +0200 |
parents | 31c017420502 |
children | 06d9098a609a |
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, 56 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java Fri Oct 26 11:57:25 2012 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java Fri Oct 26 12:13:38 2012 +0200 @@ -5,25 +5,31 @@ */ 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; + private String name; + private Double start; + private Double end; + private Double station; + private String rivername; + private String measurementtype; + private String riverside; + private Integer id; + private boolean kmup; + private String moperator; public DefaultMeasurementStation() { } public DefaultMeasurementStation( - String rivername, - String name, - Double station, - Double start, - Double end, - String riverside, - String measurementtype) + String rivername, + String name, + Integer id, + Double station, + Double start, + Double end, + boolean kmup, + String riverside, + String measurementtype, + String moperator) { this.rivername = rivername; this.name = name; @@ -32,6 +38,9 @@ this.end = end; this.riverside = riverside; this.measurementtype = measurementtype; + this.id = id; + this.kmup = kmup; + this.moperator = moperator; } /** @@ -90,4 +99,25 @@ public String getRiverSide() { return this.riverside; } + + /** + * Returns the ID of the measurement station + */ + @Override + public Integer getID() { + return this.id; + } + + @Override + public boolean isKmUp() { + return this.kmup; + } + + /** + * Returns the operator of the measurement station + */ + @Override + public String getOperator() { + return this.moperator; + } }
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/MeasurementStation.java Fri Oct 26 11:57:25 2012 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/MeasurementStation.java Fri Oct 26 12:13:38 2012 +0200 @@ -22,6 +22,8 @@ */ Double getKmEnd(); + boolean isKmUp(); + /** * Returns the station km of the measurement station or null if not * available @@ -42,4 +44,14 @@ * Returns the type of the measurement station */ String getMeasurementType(); + + /** + * Returns the ID of the measurement station + */ + Integer getID(); + + /** + * Returns the operator of the measurement station + */ + String getOperator(); }