Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedDiffYearResult.java @ 3898:95d699c769fb
Bedheight difference calculation has chart outpus now.
flys-artifacts/trunk@5562 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 21 Sep 2012 14:29:32 +0000 |
parents | a1c79d84e3cd |
children | da48e33f4241 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedDiffYearResult.java Fri Sep 21 14:18:16 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedDiffYearResult.java Fri Sep 21 14:29:32 2012 +0000 @@ -9,23 +9,36 @@ protected TDoubleArrayList bedHeights; protected TDoubleArrayList dataGap; - + protected TDoubleArrayList morphWidth; + protected int start; + protected int end; + public BedDiffYearResult () { super(); this.bedHeights = new TDoubleArrayList(); this.dataGap = new TDoubleArrayList(); + this.morphWidth = new TDoubleArrayList(); + this.start = -1; + this.end = -1; } public BedDiffYearResult( TDoubleArrayList kms, TDoubleArrayList differences, + TDoubleArrayList heights1, + TDoubleArrayList heights2, TDoubleArrayList morphWidth, TDoubleArrayList bedHeights, - TDoubleArrayList dataGap + TDoubleArrayList dataGap, + int start, + int end ) { - super(kms, differences, morphWidth); + super(kms, differences, heights1, heights2); this.bedHeights = bedHeights; this.dataGap = dataGap; + this.morphWidth = morphWidth; + this.start = start; + this.end = end; } public TDoubleArrayList getBedHeights() { @@ -35,4 +48,30 @@ public TDoubleArrayList getDataGap() { return this.dataGap; } + + public TDoubleArrayList getMorphWidth() { + return this.morphWidth; + } + + public int getStart() { + return this.start; + } + + public int getEnd() { + return this.end; + } + + public double[][] getMorphWidthData() { + return new double[][] { + kms.toNativeArray(), + morphWidth.toNativeArray() + }; + } + + public double[][] getHeightPerYearData() { + return new double[][] { + kms.toNativeArray(), + bedHeights.toNativeArray() + }; + } }