view artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/Tkh.java @ 8915:d9dbf0b74bc2

Refaktoring of flow depth calculation, extracting tkh part. First implementation of tkh calculation.
author gernotbelger
date Wed, 28 Feb 2018 17:27:15 +0100
parents
children 82998242ba84
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.tkhcalculation;

import java.io.Serializable;

/**
 * Result of a transport bodies height calculation.
 *
 * @author Gernot Belger
 */
public final class Tkh implements Serializable {

    private static final long serialVersionUID = 1L;

    private final double km;

    private final double wst;

    private final double meanBedHeight;

    private final double discharge;

    private final SoilKind kind;

    private final double tkh;

    private final double tkhUp;

    private final double tkhDown;

    public Tkh(final double km, final double wst, final double meanBedHeight, final double discharge) {
        this(km, wst, meanBedHeight, discharge, null, Double.NaN, Double.NaN, Double.NaN);
    }

    public Tkh(final double km, final double wst, final double meanBedHeight, final double discharge, final SoilKind kind, final double tkh, final double tkhUp,
            final double tkhDown) {
        this.km = km;
        this.wst = wst;
        this.meanBedHeight = meanBedHeight;
        this.discharge = discharge;
        this.kind = kind;
        this.tkh = tkh;
        this.tkhUp = tkhUp;
        this.tkhDown = tkhDown;
    }

    public double getStation() {
        return this.km;
    }

    public double getTkh() {
        return this.tkh;
    }

    public SoilKind getKind() {
        return this.kind;
    }

    public double getUp() {
        return this.tkhUp;
    }

    public double getDown() {
        return this.tkhDown;
    }

    public double getWaterlevel() {
        return this.wst;
    }

    public double getDischarge() {
        return this.discharge;
    }

    public double getMeanBedHeight() {
        return this.meanBedHeight;
    }
}

http://dive4elements.wald.intevation.org