Mercurial > dive4elements > river
diff gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultMeasurementStation.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultMeasurementStation.java@821a02bbfb4e |
children | 172338b1407f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultMeasurementStation.java Thu Apr 25 15:23:37 2013 +0200 @@ -0,0 +1,159 @@ +package org.dive4elements.river.client.shared.model; + +import java.util.Date; + +/** + * @author <a href="mailto:bjoern.ricks@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; + private Integer id; + private boolean kmup; + private String moperator; + private Date starttime; + private Date stoptime; + private String gaugename; + + public DefaultMeasurementStation() { + } + + public DefaultMeasurementStation( + String rivername, + String name, + Integer id, + Double station, + Double start, + Double end, + boolean kmup, + String riverside, + String measurementtype, + String moperator, + Date starttime, + Date stoptime, + String gaugename) + { + this.rivername = rivername; + this.name = name; + this.station = station; + this.start = start; + this.end = end; + this.riverside = riverside; + this.measurementtype = measurementtype; + this.id = id; + this.kmup = kmup; + this.moperator = moperator; + this.starttime = starttime; + this.stoptime = stoptime; + this.gaugename = gaugename; + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * Returns the name of the gauge in reference to this measurement station + */ + @Override + public String getGaugeName() { + return this.gaugename; + } + +}