Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedDiameterResult.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 gnu.trove.TDoubleArrayList; public class BedDiameterResult extends BedQualityDiameterResult { protected TDoubleArrayList diameterCap; protected TDoubleArrayList diameterSub; public BedDiameterResult ( String type, TDoubleArrayList diameterCap, TDoubleArrayList diameterSub, TDoubleArrayList km ) { super(type, km); this.diameterCap = diameterCap; this.diameterSub = diameterSub; } public double getDiameterCap(int ndx) { if (diameterCap != null) { return this.diameterCap.get(ndx); } return Double.NaN; } public double getDiameterSub(int ndx) { if (diameterSub != null) { return this.diameterSub.get(ndx); } return Double.NaN; } public double getDiameterCap(double km) { if (kms.indexOf(km) >= 0) { return diameterCap.get(kms.indexOf(km)); } return Double.NaN; } public double getDiameterSub(double km) { if (kms.indexOf(km) >= 0) { return diameterSub.get(kms.indexOf(km)); } return Double.NaN; } public double[][] getDiameterCapData() { return new double[][] { kms.toNativeArray(), diameterCap.toNativeArray() }; } public double[][] getDiameterSubData() { return new double[][] { kms.toNativeArray(), diameterSub.toNativeArray() }; } }