bjoern@3713: package de.intevation.flys.client.shared.model; bjoern@3713: bjoern@3713: /** bjoern@3713: * @author Björn Ricks bjoern@3713: */ bjoern@3713: public class DefaultGaugeInfo implements GaugeInfo { bjoern@3713: bjoern@3713: private String name; bjoern@3713: private Double start; bjoern@3713: private Double end; bjoern@3713: private Double aeo; bjoern@3713: private Double datum; bjoern@3713: private Double minq; bjoern@3713: private Double maxq; bjoern@3713: private Double minw; bjoern@3713: private Double maxw; bjoern@3713: private boolean kmup; ingo@3719: private Double station; ingo@3719: private String wstunit; bjoern@3843: private Long officialnumber; bjoern@3864: private String rivername; bjoern@3713: bjoern@3713: public DefaultGaugeInfo() { bjoern@3713: } bjoern@3713: bjoern@3713: public DefaultGaugeInfo( bjoern@3864: String rivername, bjoern@3713: String name, bjoern@3713: boolean kmup, ingo@3719: Double station, bjoern@3713: Double start, bjoern@3713: Double end, bjoern@3713: Double datum, bjoern@3713: Double aeo, bjoern@3713: Double minq, bjoern@3713: Double maxq, bjoern@3713: Double minw, ingo@3719: Double maxw, bjoern@3838: String wstunit, bjoern@3843: Long official) bjoern@3713: { bjoern@3864: this.rivername = rivername; bjoern@3843: this.name = name; bjoern@3848: this.kmup = kmup; bjoern@3843: this.station = station; bjoern@3843: this.start = start; bjoern@3843: this.end = end; bjoern@3843: this.datum = datum; bjoern@3843: this.aeo = aeo; bjoern@3843: this.minq = minq; bjoern@3843: this.maxq = maxq; bjoern@3843: this.minw = minw; bjoern@3843: this.maxw = maxw; bjoern@3843: this.wstunit = wstunit; bjoern@3843: this.officialnumber = official; bjoern@3713: } bjoern@3713: /** bjoern@3713: * Returns the name of the gauge bjoern@3713: */ bjoern@3713: public String getName() { bjoern@3713: return this.name; bjoern@3713: } bjoern@3713: bjoern@3713: /** bjoern@3713: * Returns the start KM of the gauge or null if not available bjoern@3713: */ bjoern@3713: public Double getKmStart() { bjoern@3713: return this.start; bjoern@3713: } bjoern@3713: bjoern@3713: /** bjoern@3713: * Returns the end KM of the gauge or null if not available bjoern@3713: */ bjoern@3713: public Double getKmEnd() { bjoern@3713: return this.end; bjoern@3713: } bjoern@3713: bjoern@3713: /** bjoern@3713: * Returns the mimimum Q value at this gauge or null if not available bjoern@3713: */ bjoern@3713: public Double getMinQ() { bjoern@3713: return this.minq; bjoern@3713: } bjoern@3713: bjoern@3713: /** bjoern@3713: * Returns the maximum Q value at this gauge or null if not available bjoern@3713: */ bjoern@3713: public Double getMaxQ() { bjoern@3713: return this.maxq; bjoern@3713: } bjoern@3713: bjoern@3713: /** bjoern@3713: * Returns the mimimum W value at this gauge or null if not available bjoern@3713: */ bjoern@3713: public Double getMinW() { bjoern@3713: return this.minw; bjoern@3713: } bjoern@3713: bjoern@3713: /** bjoern@3713: * Returns the maximim W value at this gauge or null if not available bjoern@3713: */ bjoern@3713: public Double getMaxW() { bjoern@3713: return this.maxw; bjoern@3713: } bjoern@3713: bjoern@3713: /** bjoern@3713: * Returns the datum value or null if not available bjoern@3713: */ bjoern@3713: public Double getDatum() { bjoern@3713: return this.datum; bjoern@3713: } bjoern@3713: bjoern@3713: /** bjoern@3713: * Returns the aeo value or null if not available bjoern@3713: */ bjoern@3713: public Double getAeo() { bjoern@3713: return this.aeo; bjoern@3713: } bjoern@3713: bjoern@3713: public boolean isKmUp() { bjoern@3713: return this.kmup; bjoern@3713: } ingo@3719: ingo@3719: /** ingo@3719: * Returns the station km of the gauge or null if not available ingo@3719: */ ingo@3719: public Double getStation() { ingo@3719: return this.station; ingo@3719: } ingo@3719: ingo@3719: /** ingo@3719: * Returns the wst unit as a String ingo@3719: */ ingo@3719: public String getWstUnit() { ingo@3719: return this.wstunit; ingo@3719: } bjoern@3838: bjoern@3838: /** bjoern@3843: * Returns the official number of this gauge bjoern@3843: */ bjoern@3843: public Long getOfficialNumber() { bjoern@3843: return this.officialnumber; bjoern@3843: } bjoern@3864: bjoern@3864: /** bjoern@3864: * Returns the river to which this gauge belongs bjoern@3864: */ bjoern@3864: public String getRiverName() { bjoern@3864: return this.rivername; bjoern@3864: } bjoern@3713: }