comparison 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
comparison
equal deleted inserted replaced
3897:bce2dd4310a6 3898:95d699c769fb
7 extends BedDifferencesResult 7 extends BedDifferencesResult
8 { 8 {
9 9
10 protected TDoubleArrayList bedHeights; 10 protected TDoubleArrayList bedHeights;
11 protected TDoubleArrayList dataGap; 11 protected TDoubleArrayList dataGap;
12 12 protected TDoubleArrayList morphWidth;
13 protected int start;
14 protected int end;
15
13 public BedDiffYearResult () { 16 public BedDiffYearResult () {
14 super(); 17 super();
15 this.bedHeights = new TDoubleArrayList(); 18 this.bedHeights = new TDoubleArrayList();
16 this.dataGap = new TDoubleArrayList(); 19 this.dataGap = new TDoubleArrayList();
20 this.morphWidth = new TDoubleArrayList();
21 this.start = -1;
22 this.end = -1;
17 } 23 }
18 24
19 public BedDiffYearResult( 25 public BedDiffYearResult(
20 TDoubleArrayList kms, 26 TDoubleArrayList kms,
21 TDoubleArrayList differences, 27 TDoubleArrayList differences,
28 TDoubleArrayList heights1,
29 TDoubleArrayList heights2,
22 TDoubleArrayList morphWidth, 30 TDoubleArrayList morphWidth,
23 TDoubleArrayList bedHeights, 31 TDoubleArrayList bedHeights,
24 TDoubleArrayList dataGap 32 TDoubleArrayList dataGap,
33 int start,
34 int end
25 ) { 35 ) {
26 super(kms, differences, morphWidth); 36 super(kms, differences, heights1, heights2);
27 this.bedHeights = bedHeights; 37 this.bedHeights = bedHeights;
28 this.dataGap = dataGap; 38 this.dataGap = dataGap;
39 this.morphWidth = morphWidth;
40 this.start = start;
41 this.end = end;
29 } 42 }
30 43
31 public TDoubleArrayList getBedHeights() { 44 public TDoubleArrayList getBedHeights() {
32 return this.bedHeights; 45 return this.bedHeights;
33 } 46 }
34 47
35 public TDoubleArrayList getDataGap() { 48 public TDoubleArrayList getDataGap() {
36 return this.dataGap; 49 return this.dataGap;
37 } 50 }
51
52 public TDoubleArrayList getMorphWidth() {
53 return this.morphWidth;
54 }
55
56 public int getStart() {
57 return this.start;
58 }
59
60 public int getEnd() {
61 return this.end;
62 }
63
64 public double[][] getMorphWidthData() {
65 return new double[][] {
66 kms.toNativeArray(),
67 morphWidth.toNativeArray()
68 };
69 }
70
71 public double[][] getHeightPerYearData() {
72 return new double[][] {
73 kms.toNativeArray(),
74 bedHeights.toNativeArray()
75 };
76 }
38 } 77 }

http://dive4elements.wald.intevation.org