Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedloadDiameterResult.java @ 4357:11cf29eb002c
FacetTypes: New type: exreme_wq_curve_base (for the Stuetz-Q-Poits).
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 02 Nov 2012 11:58:11 +0100 |
parents | a5f65e8983be |
children |
line wrap: on
line source
package de.intevation.flys.artifacts.model.minfo; import de.intevation.flys.artifacts.model.DateRange; import gnu.trove.TDoubleArrayList; public class BedloadDiameterResult extends BedQualityDiameterResult { protected TDoubleArrayList diameter; public BedloadDiameterResult( String type, TDoubleArrayList diameter, TDoubleArrayList km, DateRange range ) { super (type, km); this.diameter = diameter; } public double getDiameter(int ndx) { if (diameter != null) { return this.diameter.get(ndx); } return Double.NaN; } public double getDiameter(double km) { if (kms.indexOf(km) >= 0) { return diameter.get(kms.indexOf(km)); } return Double.NaN; } public double[][] getDiameterData() { return new double[][] { kms.toNativeArray(), diameter.toNativeArray() }; } }