view artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/BedHeightInfo.java @ 8879:64ca63f79f6f

Further work on SINFO-FlowDepth
author gernotbelger
date Fri, 09 Feb 2018 13:27:10 +0100
parents 9f7a285b0ee3
children f762fadc5313
line wrap: on
line source
/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
 * Software engineering by
 *  Björnsen Beratende Ingenieure GmbH
 *  Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
 *
 * This file is Free Software under the GNU AGPL (>=v3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out the
 * documentation coming with Dive4Elements River for details.
 */
package org.dive4elements.river.artifacts.sinfo.flowdepth;

import org.dive4elements.river.model.BedHeight;

/**
 * Basic infos about a {@link BedHeight}.
 *
 * @author Gernot Belger
 */
final class BedHeightInfo {

    private final Integer year;

    private final String description;

    private final String type;

    private final String locationSystem;

    private final String curElevationModelUnit;

    private final String oldElevationModelUnit;

    public static BedHeightInfo from(final BedHeight bedHeight) {
        return new BedHeightInfo(bedHeight);
    }

    private BedHeightInfo(final BedHeight bedHeight) {

        this.year = bedHeight.getYear();

        // private String evaluationBy;
        this.description = bedHeight.getDescription();

        this.type = bedHeight.getType().getName();

        this.locationSystem = bedHeight.getLocationSystem().getName();

        this.curElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName();
        this.oldElevationModelUnit = bedHeight.getCurElevationModel().getUnit().getName();
    }

    public Integer getYear() {
        return this.year;
    }

    public String getDescription() {
        return this.description;
    }

    public String getType() {
        return this.type;
    }

    public String getLocationSystem() {
        return this.locationSystem;
    }

    public String getCurElevationModelUnit() {
        return this.curElevationModelUnit;
    }

    public String getOldElevationModelUnit() {
        return this.oldElevationModelUnit;
    }
}

http://dive4elements.wald.intevation.org