Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSingleData.java @ 7828:8faa8cfd2385 minfo-opt
Renamed the incorrectly named morph width to sounding width.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 27 Mar 2014 14:56:34 +0100 |
parents | 9513d1af7d58 |
children | 1aba75321441 |
comparison
equal
deleted
inserted
replaced
7826:982382d9ea8b | 7828:8faa8cfd2385 |
---|---|
14 public class BedHeightSingleData | 14 public class BedHeightSingleData |
15 extends BedHeightData | 15 extends BedHeightData |
16 { | 16 { |
17 protected int year; | 17 protected int year; |
18 protected TDoubleArrayList data_gap; | 18 protected TDoubleArrayList data_gap; |
19 protected TDoubleArrayList morphWidth; | 19 protected TDoubleArrayList soundingWidth; |
20 | 20 |
21 public BedHeightSingleData() { | 21 public BedHeightSingleData() { |
22 super(); | 22 super(); |
23 this.year = -1; | 23 this.year = -1; |
24 data_gap = new TDoubleArrayList(); | 24 data_gap = new TDoubleArrayList(); |
25 morphWidth = new TDoubleArrayList(); | 25 soundingWidth = new TDoubleArrayList(); |
26 } | 26 } |
27 | 27 |
28 public BedHeightSingleData(String name) { | 28 public BedHeightSingleData(String name) { |
29 super(name); | 29 super(name); |
30 this.year = -1; | 30 this.year = -1; |
31 data_gap = new TDoubleArrayList(); | 31 data_gap = new TDoubleArrayList(); |
32 morphWidth = new TDoubleArrayList(); | 32 soundingWidth = new TDoubleArrayList(); |
33 } | 33 } |
34 | 34 |
35 public void add( | 35 public void add( |
36 double value, | 36 double value, |
37 double station, | 37 double station, |
40 int year | 40 int year |
41 ) { | 41 ) { |
42 super.add(value, station); | 42 super.add(value, station); |
43 this.year = year; | 43 this.year = year; |
44 this.data_gap.add(gap); | 44 this.data_gap.add(gap); |
45 this.morphWidth.add(width); | 45 this.soundingWidth.add(width); |
46 } | 46 } |
47 | 47 |
48 public int getYear() { | 48 public int getYear() { |
49 return this.year; | 49 return this.year; |
50 } | 50 } |
51 | 51 |
52 public double getMorphWidth(int idx) { | 52 public double getSoundingWidth(int idx) { |
53 return this.morphWidth.getQuick(idx); | 53 return this.soundingWidth.getQuick(idx); |
54 } | 54 } |
55 | 55 |
56 public double getDataGap(int idx) { | 56 public double getDataGap(int idx) { |
57 return this.data_gap.getQuick(idx); | 57 return this.data_gap.getQuick(idx); |
58 } | 58 } |
59 | 59 |
60 public double getMorphWidth(double station) { | 60 public double getSoundingWidth(double station) { |
61 int index = this.station.indexOf(station); | 61 int index = this.station.indexOf(station); |
62 return index >= 0 ? morphWidth.getQuick(index): Double.NaN; | 62 return index >= 0 ? soundingWidth.getQuick(index): Double.NaN; |
63 } | 63 } |
64 | 64 |
65 public double getDataGap(double station) { | 65 public double getDataGap(double station) { |
66 int index = this.station.indexOf(station); | 66 int index = this.station.indexOf(station); |
67 return index >= 0 ? data_gap.getQuick(index) : Double.NaN; | 67 return index >= 0 ? data_gap.getQuick(index) : Double.NaN; |
68 } | 68 } |
69 | 69 |
70 public double[] getMorphWidths() { | 70 public double[] getSoundingWidths() { |
71 return this.morphWidth.toNativeArray(); | 71 return this.soundingWidth.toNativeArray(); |
72 } | 72 } |
73 } | 73 } |