bjoern@3713: package de.intevation.flys.client.shared.model;
bjoern@3713:
bjoern@3713: import java.util.List;
bjoern@3713:
bjoern@3713: /**
bjoern@3713: * @author Björn Ricks
bjoern@3713: */
bjoern@3713:
bjoern@3713: public class DefaultRiverInfo implements RiverInfo {
bjoern@3713:
bjoern@3713: private String name;
bjoern@3713: private boolean kmup;
bjoern@3713: private Double start;
bjoern@3713: private Double end;
bjoern@3713: private String wstunit;
bjoern@3713: private Double minq;
bjoern@3713: private Double maxq;
bjoern@3847: private Long officialnumber;
bjoern@3713:
bjoern@3713: private List gaugeinfo;
bjoern@4249: private List mstations;
bjoern@3713:
bjoern@3713: public DefaultRiverInfo() {
bjoern@3713: }
bjoern@3713:
bjoern@3713: public DefaultRiverInfo(
bjoern@3713: String name,
bjoern@3713: boolean kmup,
bjoern@3713: Double start,
bjoern@3713: Double end,
bjoern@3713: String wstunit,
bjoern@3713: Double minq,
bjoern@3713: Double maxq,
bjoern@4249: Long official)
bjoern@3713: {
bjoern@3847: this.name = name;
bjoern@3847: this.kmup = kmup;
bjoern@3847: this.start = start;
bjoern@3847: this.end = end;
bjoern@3847: this.wstunit = wstunit;
bjoern@3847: this.minq = minq;
bjoern@3847: this.maxq = maxq;
bjoern@3847: this.officialnumber = official;
bjoern@3713: }
bjoern@3713:
bjoern@3713: public boolean isKmUp() {
bjoern@3713: return this.kmup;
bjoern@3713: }
bjoern@3713:
bjoern@3713: /**
bjoern@3713: * Start KM of the river
bjoern@3713: */
bjoern@3713: public Double getKmStart() {
bjoern@3713: return this.start;
bjoern@3713: }
bjoern@3713:
bjoern@3713: /**
bjoern@3713: * End KM of the river
bjoern@3713: */
bjoern@3713: public Double getKmEnd() {
bjoern@3713: return this.end;
bjoern@3713: }
bjoern@3713:
bjoern@3713: /**
bjoern@3713: * Returns the name of the river
bjoern@3713: */
bjoern@3713: public String getName() {
bjoern@3713: return this.name;
bjoern@3713: }
bjoern@3713:
bjoern@3713: /**
bjoern@3713: * Returns the name of the WST unit
bjoern@3713: */
bjoern@3713: public String getWstUnit() {
bjoern@3713: return this.wstunit;
bjoern@3713: }
bjoern@3713:
bjoern@3713: /**
bjoern@4249: * Return all gauge info of the river or null if they aren't available.
bjoern@3713: */
bjoern@3713: public List getGauges() {
bjoern@3713: return this.gaugeinfo;
bjoern@3713: }
bjoern@3713:
bjoern@3713: /**
bjoern@3713: * Returns the min q value of the river
bjoern@3713: */
bjoern@3713: public Double getMinQ() {
bjoern@3713: return this.minq;
bjoern@3713: }
bjoern@3713:
bjoern@3713: /**
bjoern@3713: * Returns the max q value of the river
bjoern@3713: */
bjoern@3713: public Double getMaxQ() {
bjoern@3713: return maxq;
bjoern@3713: }
bjoern@3838:
bjoern@3838: /**
bjoern@3847: * Returns the official number of the river
bjoern@3838: */
bjoern@3847: public Long getOfficialNumber() {
bjoern@3847: return this.officialnumber;
bjoern@3838: }
bjoern@4249:
bjoern@4249: /**
bjoern@4249: * Returns the MeasurementStations on this river or null if they aren't
bjoern@4249: * available.
bjoern@4249: */
bjoern@4249: @Override
bjoern@4249: public List getMeasurementStations() {
bjoern@4249: return this.mstations;
bjoern@4249: }
bjoern@4249:
bjoern@4249: public void setGauges(List gauges) {
bjoern@4249: this.gaugeinfo = gauges;
bjoern@4249: }
bjoern@4249:
bjoern@4249: public void setMeasurementStations(List mstations) {
bjoern@4249: this.mstations = mstations;
bjoern@4249: }
bjoern@3713: }