view artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java @ 6665:b7945db8a43b

issue1413: Only show unknown sediment loads of selected unit type. Therefore, adjusted the factory to take the units name. Unfortunately, names in db do not match values of data items. Thus do manual replacing. In Facet and Calculate, take the chosen unit via access and to the string replacement. In Facet, do not transform data (we assume it comes in unit as labeled in the db), and removed the possibility of m3/a-data of unknown yields in a t/a diagram and vice versa.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 25 Jul 2013 15:08:13 +0200
parents ec537afacac2
children 33f3cc375a23
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.minfo;

import org.dive4elements.river.artifacts.model.NamedObjectImpl;
import org.dive4elements.river.artifacts.model.Range;

/** One part of sedimentload. */
public class SedimentLoadFraction
extends NamedObjectImpl
{
    double sand;
    double fineMiddle;
    double coarse;
    double suspSand;
    double suspSandBed;
    double suspSediment;
    double loadTotal;
    double total;
    double unknown;
    /** Values are valid within this km range. */
    Range sandRange = null;
    Range fineMiddleRange = null;
    Range coarseRange = null;
    Range suspSandRange = null;
    Range suspSandBedRange = null;
    Range suspSedimentRange = null;
    Range loadTotalRange = null;
    Range totalRange = null;
    Range unknownRange = null;

    public SedimentLoadFraction() {
        sand = 0d;
        fineMiddle = 0d;
        coarse = 0d;
        suspSand = 0d;
        suspSandBed = 0d;
        suspSediment = 0d;
        loadTotal = 0d;
        unknown = 0d;
    }

    public double getSand() {
        return sand;
    }

    public void setSand(double sand) {
        this.sand = sand;
    }

    public void setSandRange(Range range) {
        this.sandRange = range;
    }

    public Range getSandRange() {
        return this.sandRange;
    }

    public double getFineMiddle() {
        return fineMiddle;
    }

    public void setFineMiddle(double fineMiddle) {
        this.fineMiddle = fineMiddle;
    }

    public void setFineMiddleRange(Range range) {
        this.fineMiddleRange = range;
    }

    public Range getFineMiddleRange() {
        return this.fineMiddleRange;
    }

    public double getCoarse() {
        return coarse;
    }

    public void setCoarse(double coarse) {
        this.coarse = coarse;
    }

    public Range getCoarseRange() {
        return this.coarseRange;
    }

    public void setCoarseRange(Range range) {
        this.coarseRange = range;
    }

    public double getSuspSand() {
        return suspSand;
    }

    public void setSuspSand(double suspSand) {
        this.suspSand = suspSand;
    }

    public void setSuspSandRange(Range range) {
        this.suspSandRange = range;
    }

    public Range getSuspSandRange() {
        return this.suspSandRange;
    }

    public double getSuspSandBed() {
        return suspSandBed;
    }

    public void setSuspSandBed(double suspSandBed) {
        this.suspSandBed = suspSandBed;
    }

    public void setSuspSandBedRange(Range range) {
        this.suspSandRange = range;
    }

    public Range getSuspSandBedRange() {
        return this.suspSandRange;
    }

    public double getSuspSediment() {
        return suspSediment;
    }

    public void setSuspSediment(double suspSediment) {
        this.suspSediment = suspSediment;
    }

    public void setSuspSedimentRange(Range range) {
        this.suspSedimentRange = range;
    }

    public Range getSuspSedimentRange() {
        return this.suspSedimentRange;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public void setTotalRange(Range range) {
        this.totalRange = range;
    }

    public Range getTotalRange() {
        return this.totalRange;
    }

    public double getLoadTotal() {
        return loadTotal;
    }

    public void setLoadTotal(double total) {
        this.loadTotal = total;
    }

    public void setLoadTotalRange(Range range) {
        this.loadTotalRange = range;
    }

    public double getUnknown() {
        return unknown;
    }

    public void setUnknown(double unknown) {
        this.unknown = unknown;
    }

    public Range getUnknownRange() {
        return unknownRange;
    }

    public void setUnknownRange(Range unknownRange) {
        this.unknownRange = unknownRange;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org