view artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiameterData.java @ 8587:07c9ac22f611

(issue1755) Generalise BedQuality result handling The bedquality calculation now produces a result for each time period which has BedQualityResultValues for each specific result type. Formally this was split up in density, porosity and diameter classes with some bedload diameter classes mixed in for extra fun. The intent of this commit is to allow more shared code and generic access patterns to the BedQuality results.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 18 Mar 2015 18:42:08 +0100
parents 267119b38779
children a805211690f7
line wrap: on
line source
package org.dive4elements.river.artifacts.model.minfo;

import gnu.trove.TDoubleArrayList;


public class BedDiameterData
extends BedQualityDiameterResult
{

    private TDoubleArrayList data;

    public BedDiameterData() {
        super();
    }

    public BedDiameterData (
        String type,
        TDoubleArrayList kms,
        TDoubleArrayList data) {
        super(type, kms);
        this.data = data;
    }

    public double[][] getDiameterData() {
        return new double[][]{kms.toNativeArray(), data.toNativeArray()};
    }
}

http://dive4elements.wald.intevation.org