Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDifferencesResult.java @ 5831:bd047b71ab37
Repaired internal references
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 12:06:39 +0200 |
parents | flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedDifferencesResult.java@3ab9ec5ca02f |
children |
comparison
equal
deleted
inserted
replaced
5830:160f53ee0870 | 5831:bd047b71ab37 |
---|---|
1 package org.dive4elements.river.artifacts.model.minfo; | |
2 | |
3 import gnu.trove.TDoubleArrayList; | |
4 | |
5 import java.io.Serializable; | |
6 | |
7 | |
8 public class BedDifferencesResult | |
9 implements Serializable | |
10 { | |
11 | |
12 protected TDoubleArrayList kms; | |
13 protected TDoubleArrayList differences; | |
14 protected TDoubleArrayList height1; | |
15 protected TDoubleArrayList height2; | |
16 | |
17 public BedDifferencesResult () { | |
18 kms = new TDoubleArrayList(); | |
19 differences = new TDoubleArrayList(); | |
20 height1 = new TDoubleArrayList(); | |
21 height2 = new TDoubleArrayList(); | |
22 } | |
23 | |
24 public BedDifferencesResult( | |
25 TDoubleArrayList kms, | |
26 TDoubleArrayList differences, | |
27 TDoubleArrayList heights1, | |
28 TDoubleArrayList heights2 | |
29 ) { | |
30 this.kms = kms; | |
31 this.differences = differences; | |
32 this.height1 = heights1; | |
33 this.height2 = heights2; | |
34 } | |
35 | |
36 public TDoubleArrayList getKms() { | |
37 return this.kms; | |
38 } | |
39 | |
40 public TDoubleArrayList getDifferences() { | |
41 return this.differences; | |
42 } | |
43 | |
44 public void addKm(double value) { | |
45 this.kms.add(value); | |
46 } | |
47 | |
48 public void addDifference(double value) { | |
49 this.differences.add(value); | |
50 } | |
51 | |
52 public void addHeight1(double value) { | |
53 this.height1.add(value); | |
54 } | |
55 | |
56 public void addHeight2(double value) { | |
57 this.height2.add(value); | |
58 } | |
59 | |
60 public double[][] getDifferencesData() { | |
61 return new double[][] { | |
62 kms.toNativeArray(), | |
63 differences.toNativeArray() | |
64 }; | |
65 } | |
66 | |
67 public TDoubleArrayList getHeights1() { | |
68 return this.height1; | |
69 } | |
70 | |
71 public TDoubleArrayList getHeights2() { | |
72 return this.height2; | |
73 } | |
74 | |
75 public double[][] getHeights1Data() { | |
76 return new double[][] { | |
77 kms.toNativeArray(), | |
78 height1.toNativeArray() | |
79 }; | |
80 } | |
81 | |
82 public double[][] getHeights2Data() { | |
83 return new double[][] { | |
84 kms.toNativeArray(), | |
85 height2.toNativeArray() | |
86 }; | |
87 } | |
88 } |