Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/math/BackJumpCorrector.java @ 2166:2898b1ff6013
I18N for WINFO calculation result messages.
flys-artifacts/trunk@3758 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 24 Jan 2012 22:59:44 +0000 |
parents | 6e840e213fdf |
children | 5642a83420f2 |
comparison
equal
deleted
inserted
replaced
2165:637dd38d0e2f | 2166:2898b1ff6013 |
---|---|
152 | 152 |
153 try { | 153 try { |
154 spline = interpolator.interpolate(x, y); | 154 spline = interpolator.interpolate(x, y); |
155 } | 155 } |
156 catch (MathIllegalArgumentException miae) { | 156 catch (MathIllegalArgumentException miae) { |
157 // TODO: I18N | 157 errors.addProblem("spline.creation.failed"); |
158 errors.addProblem("creating spline interpolation failed."); | |
159 log.error(miae); | 158 log.error(miae); |
160 continue; | 159 continue; |
161 } | 160 } |
162 | 161 |
163 try { | 162 try { |
177 for (; j >= 0 && ws[j] < startHeight; --j) { | 176 for (; j >= 0 && ws[j] < startHeight; --j) { |
178 ws[j] = spline.value(km[j]); | 177 ws[j] = spline.value(km[j]); |
179 } | 178 } |
180 } | 179 } |
181 catch (ArgumentOutsideDomainException aode) { | 180 catch (ArgumentOutsideDomainException aode) { |
182 // TODO: I18N | 181 errors.addProblem("spline.interpolation.failed"); |
183 errors.addProblem("spline interpolation failed."); | |
184 log.error("spline interpolation failed", aode); | 182 log.error("spline interpolation failed", aode); |
185 } | 183 } |
186 } // for all km | 184 } // for all km |
187 | 185 |
188 return !backjumps.isEmpty(); | 186 return !backjumps.isEmpty(); |