view artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQ.java @ 6350:876c797c2805

Fixed SQ relation total bedload: Use the correct input data for calculation.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 17 Jun 2013 14:30:00 +0200
parents af13ceeba52a
children b8f94e865875
line wrap: on
line source
/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
 * Software engineering by Intevation GmbH
 *
 * 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.model.sq;

import java.io.Serializable;


public class SQ implements Serializable {

    protected double s;
    protected double q;

    public SQ() {
    }

    public SQ(double s, double q) {
        this.s = s;
        this.q = q;
    }


    public double getS() {
        return s;
    }

    public void setS(double s) {
        this.s = s;
    }


    public double getQ() {
        return q;
    }

    public void setQ(double q) {
        this.q = q;
    }

    public boolean isValid() {
        return !Double.isNaN(s) && !Double.isNaN(q);
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org