Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadCalculation.java @ 5742:a4a894b15c35
Minor part of issue1235: dont show decimals of years.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 17 Apr 2013 10:06:13 +0200 |
parents | 756df79274e1 |
children | b5d20b3dab4e |
comparison
equal
deleted
inserted
replaced
5740:0516c1f8f674 | 5742:a4a894b15c35 |
---|---|
256 | 256 |
257 private SedimentLoad calculateTotalLoad(SedimentLoad load, int year) { | 257 private SedimentLoad calculateTotalLoad(SedimentLoad load, int year) { |
258 logger.debug("calculateTotalLoad"); | 258 logger.debug("calculateTotalLoad"); |
259 boolean problemThisYear = false; | 259 boolean problemThisYear = false; |
260 if (!load.hasCoarse()) { | 260 if (!load.hasCoarse()) { |
261 addProblem("missing.fraction.coarse", Double.toString(year)); | 261 addProblem("missing.fraction.coarse", Integer.toString(year)); |
262 problemThisYear = true; | 262 problemThisYear = true; |
263 } | 263 } |
264 if (!load.hasFineMiddle()) { | 264 if (!load.hasFineMiddle()) { |
265 addProblem("missing.fraction.fine_middle", Double.toString(year)); | 265 addProblem("missing.fraction.fine_middle", Integer.toString(year)); |
266 problemThisYear = true; | 266 problemThisYear = true; |
267 } | 267 } |
268 if (!load.hasSand()) { | 268 if (!load.hasSand()) { |
269 addProblem("missing.fraction.sand", Double.toString(year)); | 269 addProblem("missing.fraction.sand", Integer.toString(year)); |
270 problemThisYear = true; | 270 problemThisYear = true; |
271 } | 271 } |
272 if (!load.hasSuspSand()) { | 272 if (!load.hasSuspSand()) { |
273 addProblem("missing.fraction.susp_sand", Double.toString(year)); | 273 addProblem("missing.fraction.susp_sand", Integer.toString(year)); |
274 problemThisYear = true; | 274 problemThisYear = true; |
275 } | 275 } |
276 if (!load.hasSuspSediment()) { | 276 if (!load.hasSuspSediment()) { |
277 addProblem("missing.fraction.susp_sediment", Double.toString(year)); | 277 addProblem("missing.fraction.susp_sediment", Integer.toString(year)); |
278 problemThisYear = true; | 278 problemThisYear = true; |
279 } | 279 } |
280 if (problemThisYear) { | 280 if (problemThisYear) { |
281 logger.warn("Some problem, not calculating total load."); | 281 logger.warn("Some problem, not calculating total load."); |
282 return load; | 282 return load; |