Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearResult.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/BedDiffYearResult.java@2904ecca4663 |
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 | |
6 public class BedDiffYearResult | |
7 extends BedDifferencesResult | |
8 { | |
9 | |
10 protected TDoubleArrayList bedHeights; | |
11 protected TDoubleArrayList dataGap; | |
12 protected TDoubleArrayList morphWidth; | |
13 protected int start; | |
14 protected int end; | |
15 | |
16 public BedDiffYearResult () { | |
17 super(); | |
18 this.bedHeights = new TDoubleArrayList(); | |
19 this.dataGap = new TDoubleArrayList(); | |
20 this.morphWidth = new TDoubleArrayList(); | |
21 this.start = -1; | |
22 this.end = -1; | |
23 } | |
24 | |
25 public BedDiffYearResult( | |
26 TDoubleArrayList kms, | |
27 TDoubleArrayList differences, | |
28 TDoubleArrayList heights1, | |
29 TDoubleArrayList heights2, | |
30 TDoubleArrayList morphWidth, | |
31 TDoubleArrayList bedHeights, | |
32 TDoubleArrayList dataGap, | |
33 int start, | |
34 int end | |
35 ) { | |
36 super(kms, differences, heights1, heights2); | |
37 this.bedHeights = bedHeights; | |
38 this.dataGap = dataGap; | |
39 this.morphWidth = morphWidth; | |
40 this.start = start; | |
41 this.end = end; | |
42 } | |
43 | |
44 public TDoubleArrayList getBedHeights() { | |
45 return this.bedHeights; | |
46 } | |
47 | |
48 public TDoubleArrayList getDataGap() { | |
49 return this.dataGap; | |
50 } | |
51 | |
52 public TDoubleArrayList getMorphWidth() { | |
53 return this.morphWidth; | |
54 } | |
55 | |
56 public int getStart() { | |
57 return this.start; | |
58 } | |
59 | |
60 public void setStart(int value) { | |
61 this.start = value; | |
62 } | |
63 | |
64 public void setEnd(int value) { | |
65 this.end = value; | |
66 } | |
67 | |
68 public int getEnd() { | |
69 return this.end; | |
70 } | |
71 | |
72 public void addMorphWidth(double value) { | |
73 this.morphWidth.add(value); | |
74 } | |
75 | |
76 public void addBedHeights(double value) { | |
77 this.bedHeights.add(value); | |
78 } | |
79 | |
80 public double[][] getMorphWidthData() { | |
81 return new double[][] { | |
82 kms.toNativeArray(), | |
83 morphWidth.toNativeArray() | |
84 }; | |
85 } | |
86 | |
87 public double[][] getHeightPerYearData() { | |
88 return new double[][] { | |
89 kms.toNativeArray(), | |
90 bedHeights.toNativeArray() | |
91 }; | |
92 } | |
93 } |