Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearResult.java @ 6089:0c3301fe23bd
towards issue1061: Store names of original BedHeights in the BedDiffYearResult.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 24 May 2013 11:39:35 +0200 |
parents | af13ceeba52a |
children | c40acb6bfe38 |
comparison
equal
deleted
inserted
replaced
6088:127cc609c12b | 6089:0c3301fe23bd |
---|---|
18 protected TDoubleArrayList bedHeights; | 18 protected TDoubleArrayList bedHeights; |
19 protected TDoubleArrayList dataGap; | 19 protected TDoubleArrayList dataGap; |
20 protected TDoubleArrayList morphWidth; | 20 protected TDoubleArrayList morphWidth; |
21 protected int start; | 21 protected int start; |
22 protected int end; | 22 protected int end; |
23 protected String nameFirst; | |
24 protected String nameSecond; | |
23 | 25 |
24 public BedDiffYearResult () { | 26 public BedDiffYearResult () { |
25 super(); | 27 super(); |
26 this.bedHeights = new TDoubleArrayList(); | 28 this.bedHeights = new TDoubleArrayList(); |
27 this.dataGap = new TDoubleArrayList(); | 29 this.dataGap = new TDoubleArrayList(); |
37 TDoubleArrayList heights2, | 39 TDoubleArrayList heights2, |
38 TDoubleArrayList morphWidth, | 40 TDoubleArrayList morphWidth, |
39 TDoubleArrayList bedHeights, | 41 TDoubleArrayList bedHeights, |
40 TDoubleArrayList dataGap, | 42 TDoubleArrayList dataGap, |
41 int start, | 43 int start, |
42 int end | 44 int end, |
45 String nameFirst, | |
46 String nameSecond | |
43 ) { | 47 ) { |
44 super(kms, differences, heights1, heights2); | 48 super(kms, differences, heights1, heights2); |
45 this.bedHeights = bedHeights; | 49 this.bedHeights = bedHeights; |
46 this.dataGap = dataGap; | 50 this.dataGap = dataGap; |
47 this.morphWidth = morphWidth; | 51 this.morphWidth = morphWidth; |
48 this.start = start; | 52 this.start = start; |
49 this.end = end; | 53 this.end = end; |
54 this.nameFirst = nameFirst; | |
55 this.nameSecond = nameSecond; | |
50 } | 56 } |
51 | 57 |
52 public TDoubleArrayList getBedHeights() { | 58 public TDoubleArrayList getBedHeights() { |
53 return this.bedHeights; | 59 return this.bedHeights; |
54 } | 60 } |
75 | 81 |
76 public int getEnd() { | 82 public int getEnd() { |
77 return this.end; | 83 return this.end; |
78 } | 84 } |
79 | 85 |
86 /** Get name of the first BedHeight (minuend). */ | |
87 public String getNameFirst() { | |
88 return this.nameFirst; | |
89 } | |
90 | |
91 /** Get name of the second BedHeight (subtrahend). */ | |
92 public String getNameSecond() { | |
93 return this.nameFirst; | |
94 } | |
95 | |
80 public void addMorphWidth(double value) { | 96 public void addMorphWidth(double value) { |
81 this.morphWidth.add(value); | 97 this.morphWidth.add(value); |
82 } | 98 } |
83 | 99 |
84 public void addBedHeights(double value) { | 100 public void addBedHeights(double value) { |