comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataCalculation.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 8dbb969091c5
children 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
82 82
83 public LoadSum(String description, int [] grainFractions) { 83 public LoadSum(String description, int [] grainFractions) {
84 this.description = description; 84 this.description = description;
85 this.grainFractions = grainFractions; 85 this.grainFractions = grainFractions;
86 } 86 }
87 public static final LoadSum make(String description, int [] grainFractions) { 87 public static final LoadSum make(
88 String description,
89 int [] grainFractions
90 ) {
88 return new LoadSum(description, grainFractions); 91 return new LoadSum(description, grainFractions);
89 } 92 }
90 93
91 public String getDescription() { 94 public String getDescription() {
92 return description; 95 return description;
255 } 258 }
256 259
257 transformT2M3(sd, year, result); 260 transformT2M3(sd, year, result);
258 261
259 SedimentLoadDataResult.Fraction sldrf = 262 SedimentLoadDataResult.Fraction sldrf =
260 new SedimentLoadDataResult.Fraction(ls.getDescription(), result, period); 263 new SedimentLoadDataResult.Fraction(
264 ls.getDescription(), result, period);
261 265
262 sldr.addFraction(sldrf); 266 sldr.addFraction(sldrf);
263 } 267 }
264 } 268 }
265 return new CalculationResult(sldr, this); 269 return new CalculationResult(sldr, this);
343 return inM3() 347 return inM3()
344 ? SedimentDensityFactory.getSedimentDensity(river, from, to) 348 ? SedimentDensityFactory.getSedimentDensity(river, from, to)
345 : null; 349 : null;
346 } 350 }
347 351
348 private static void transformT2M3(SedimentDensity sd, int year, double [][] data) { 352 private static void transformT2M3(
353 SedimentDensity sd,
354 int year,
355 double [][] data
356 ) {
349 if (sd == null) { 357 if (sd == null) {
350 return; 358 return;
351 } 359 }
352 double [] kms = data[0]; 360 double [] kms = data[0];
353 double [] values = data[1]; 361 double [] values = data[1];

http://dive4elements.wald.intevation.org