Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixLineAccess.java @ 9394:439699ff9b2d
Added U-Info iota (prev. salix) calculation for historical scenario
author | mschaefer |
---|---|
date | Fri, 10 Aug 2018 17:31:46 +0200 |
parents | 2da486c7c05f |
children | 8b7bf26b8782 |
comparison
equal
deleted
inserted
replaced
9393:6174daaf5e56 | 9394:439699ff9b2d |
---|---|
97 | 97 |
98 public String getSupraRegionalString() { | 98 public String getSupraRegionalString() { |
99 return super.getString("supraregional_table"); | 99 return super.getString("supraregional_table"); |
100 } | 100 } |
101 | 101 |
102 /** | |
103 * Database id of the selected sounding, or 0 | |
104 */ | |
105 public int getBedHeightId() { | |
106 final BedHeightAccess access = new BedHeightAccess(this.artifact); | |
107 final int[] ids = access.getBedHeightIDs(); | |
108 if ((ids != null) && (ids.length > 0)) { | |
109 return ids[0]; | |
110 } | |
111 return 0; | |
112 } | |
113 | |
102 public BedHeight getBedHeight() { // TODO: make lazy? Aber achtung, falls der user zurückgeht und ne andere Peilung auswählt... | 114 public BedHeight getBedHeight() { // TODO: make lazy? Aber achtung, falls der user zurückgeht und ne andere Peilung auswählt... |
103 final BedHeightAccess access = new BedHeightAccess(this.artifact); | 115 final BedHeightAccess access = new BedHeightAccess(this.artifact); |
104 final int[] ids = access.getBedHeightIDs(); | 116 final int[] ids = access.getBedHeightIDs(); |
105 if (ids != null && ids.length > 0) { | 117 if (ids != null && ids.length > 0) { |
106 return BedHeight.getBedHeightById(ids[0]); // es nur eine bedheight ausgewählt werden; ist aber noch nicht implementiert... | 118 return BedHeight.getBedHeightById(ids[0]); // es nur eine bedheight ausgewählt werden; ist aber noch nicht implementiert... |