Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthdev/FlowDepthDevelopmentCalculation.java @ 8953:c40db8e8dcae
SINFO - Flow depth development - implemented exporters
author | gernotbelger |
---|---|
date | Mon, 19 Mar 2018 14:01:21 +0100 |
parents | 322b0e6298ea |
children | 45f1ad66560e |
comparison
equal
deleted
inserted
replaced
8952:1a8f19f3b776 | 8953:c40db8e8dcae |
---|---|
178 putValue(SInfoResultType.location, location); | 178 putValue(SInfoResultType.location, location); |
179 rows.add(row); | 179 rows.add(row); |
180 } | 180 } |
181 } | 181 } |
182 | 182 |
183 return new FlowDepthDevelopmentCalculationResult("", currentWstInfo, historicalWstInfo, currentSoundingInfo, historicalSoundingInfo, | 183 final String label = buildLabel(currentWaterlevel, currentSoundingInfo, historicalWaterlevel, historicalSoundingInfo); |
184 | |
185 return new FlowDepthDevelopmentCalculationResult(label, currentWstInfo, historicalWstInfo, currentSoundingInfo, historicalSoundingInfo, | |
184 rows); | 186 rows); |
187 } | |
188 | |
189 private String buildLabel(final WaterlevelData currentWaterlevel, final BedHeightInfo currentSounding, final WaterlevelData historicalWaterlevel, | |
190 final BedHeightInfo historicalSounding) { | |
191 | |
192 return new StringBuilder(). // | |
193 append(currentWaterlevel.getName()). // | |
194 append('/'). // | |
195 append(historicalWaterlevel.getName()). // | |
196 append(" - "). // | |
197 append(currentSounding.getDescription()). // | |
198 append('/'). // | |
199 append(historicalSounding.getDescription()). // | |
200 toString(); | |
185 } | 201 } |
186 | 202 |
187 /* REMARK: fetch ALL wst kms, because we need to determine the original reference gauge */ | 203 /* REMARK: fetch ALL wst kms, because we need to determine the original reference gauge */ |
188 private WaterlevelData loadWaterlevel(final WstSoundingIdPair pair, final Calculation problems) { | 204 private WaterlevelData loadWaterlevel(final WstSoundingIdPair pair, final Calculation problems) { |
189 final String wstId = pair.getWstId(); | 205 final String wstId = pair.getWstId(); |