comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedDifferencesResult.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 3ab9ec5ca02f
comparison
equal deleted inserted replaced
3897:bce2dd4310a6 3898:95d699c769fb
9 implements Serializable 9 implements Serializable
10 { 10 {
11 11
12 protected TDoubleArrayList kms; 12 protected TDoubleArrayList kms;
13 protected TDoubleArrayList differences; 13 protected TDoubleArrayList differences;
14 protected TDoubleArrayList morphWidth; 14 protected TDoubleArrayList height1;
15 protected TDoubleArrayList height2;
15 16
16 public BedDifferencesResult () { 17 public BedDifferencesResult () {
17 kms = new TDoubleArrayList(); 18 kms = new TDoubleArrayList();
18 differences = new TDoubleArrayList(); 19 differences = new TDoubleArrayList();
19 morphWidth = new TDoubleArrayList(); 20
20 } 21 }
21 22
22 public BedDifferencesResult( 23 public BedDifferencesResult(
23 TDoubleArrayList kms, 24 TDoubleArrayList kms,
24 TDoubleArrayList differences, 25 TDoubleArrayList differences,
25 TDoubleArrayList morpWidth 26 TDoubleArrayList heights1,
27 TDoubleArrayList heights2
26 ) { 28 ) {
27 this.kms = kms; 29 this.kms = kms;
28 this.differences = differences; 30 this.differences = differences;
29 this.morphWidth = morpWidth; 31 this.height1 = heights1;
32 this.height2 = heights2;
30 } 33 }
31 34
32 public TDoubleArrayList getKms() { 35 public TDoubleArrayList getKms() {
33 return this.kms; 36 return this.kms;
34 } 37 }
35 38
36 public TDoubleArrayList getDifferences() { 39 public TDoubleArrayList getDifferences() {
37 return this.differences; 40 return this.differences;
38 } 41 }
39 42
40 public TDoubleArrayList getMorphWidth() { 43 public double[][] getDifferencesData() {
41 return this.morphWidth; 44 return new double[][] {
45 kms.toNativeArray(),
46 differences.toNativeArray()
47 };
48 }
49
50 public TDoubleArrayList getHeights1() {
51 return this.height1;
52 }
53
54 public TDoubleArrayList getHeights2() {
55 return this.height2;
56 }
57
58 public double[][] getHeights1Data() {
59 return new double[][] {
60 kms.toNativeArray(),
61 height1.toNativeArray()
62 };
63 }
64
65 public double[][] getHeights2Data() {
66 return new double[][] {
67 kms.toNativeArray(),
68 height2.toNativeArray()
69 };
42 } 70 }
43 } 71 }

http://dive4elements.wald.intevation.org