view flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java @ 4249:7a889098bcc6

Extend the client RiverInfo model to support MeasurementStations Add method to receive the MeasurementStations from a RiverInfo. Also add methods to set the GaugeInfo and MeasurementStation to the DefaultRiverInfo.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 24 Oct 2012 17:00:37 +0200
parents fc742c039f30
children d5d68c5bf085
line wrap: on
line source
package de.intevation.flys.client.shared.model;

/**
 * @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;

    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;
    }
}

http://dive4elements.wald.intevation.org