comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/RiverInfoProvider.java @ 9229:0dcd1cd41915

Different themes/facets for left bank and right bank infrastructures in S-Info flood durations, some fixmes done
author mschaefer
date Thu, 05 Jul 2018 16:49:42 +0200
parents 4a41b7fba4da
children 385b52ccde23
comparison
equal deleted inserted replaced
9228:dba14da43f23 9229:0dcd1cd41915
91 final Gauge gauge = getGauge(km); 91 final Gauge gauge = getGauge(km);
92 92
93 return gauge == null ? this.notinrange : gauge.getName(); 93 return gauge == null ? this.notinrange : gauge.getName();
94 } 94 }
95 95
96 public String findGauge(final double km, final boolean allGauges) {
97 // REMARK: access the gauge once only during calculation
98 final Gauge gauge = getGauge(km, allGauges);
99
100 return gauge == null ? this.notinrange : gauge.getName();
101 }
102
96 private Gauge getGauge(final double km) { 103 private Gauge getGauge(final double km) {
97 104
98 // REMARK: using same logic as in WaterlevelExporter here 105 // REMARK: using same logic as in WaterlevelExporter here
99 106
100 return getGauge(km, this.showAllGauges); 107 return getGauge(km, this.showAllGauges);

http://dive4elements.wald.intevation.org