view artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthRow.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 cc86b0f9b3c3
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.flowdepth;

import org.dive4elements.river.artifacts.sinfo.common.AbstractSInfoResultRow;
import org.dive4elements.river.artifacts.sinfo.tkhcalculation.Tkh;

/**
 * Part of {@link FlowDepthCalculationResult} which represents one calculated row of flow depth data.
 *
 * @author Gernot Belger
 */
final class FlowDepthRow extends AbstractSInfoResultRow {
    private static final long serialVersionUID = 1L;

    private final double flowDepth;

    private final double flowDepthWithTkh;

    private final String soundingLabel;

    public FlowDepthRow(final double flowDepth, final double flowDepthWithTkh, final Tkh tkh, final String waterlevelLabel,
            final String gauge, final String soundingLabel, final String location) {

        super(tkh, waterlevelLabel, gauge, location);

        this.flowDepth = flowDepth;
        this.flowDepthWithTkh = flowDepthWithTkh;
        this.soundingLabel = soundingLabel;
    }

    public double getFlowDepth() {
        return this.flowDepth;
    }

    public double getFlowDepthWithTkh() {
        return this.flowDepthWithTkh;
    }

    public String getSoundageLabel() {
        return this.soundingLabel;
    }
}

http://dive4elements.wald.intevation.org