comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java @ 6948:d4108d6c4000

Cosmetics, docs.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 30 Aug 2013 09:47:15 +0200
parents 2119f13f95ab
children 40da4a6e2cfb
comparison
equal deleted inserted replaced
6947:51f28e5417ee 6948:d4108d6c4000
123 results.toArray(new SedimentLoadResult[results.size()]), this); 123 results.toArray(new SedimentLoadResult[results.size()]), this);
124 } 124 }
125 return null; 125 return null;
126 } 126 }
127 127
128 /**
129 * @param[out] resLoad resulting SedimentLoad
130 */
128 private void calculateEpochKm( 131 private void calculateEpochKm(
129 List<SedimentLoad> epochLoads, 132 List<SedimentLoad> epochLoads,
130 SedimentLoad resLoad, 133 SedimentLoad resLoad,
131 double km 134 double km
132 ) { 135 ) {
241 } 244 }
242 245
243 return result; 246 return result;
244 } 247 }
245 248
246 /** Calculate/Fetch values at off. epochs. */ 249 /**
250 * Calculate/Fetch values at off. epochs.
251 * @param i index in epochs.
252 */
247 private SedimentLoadResult calculateOffEpoch(int i) { 253 private SedimentLoadResult calculateOffEpoch(int i) {
248 SedimentLoad load = SedimentLoadFactory.getLoadWithData( 254 SedimentLoad load = SedimentLoadFactory.getLoadWithData(
249 this.river, 255 this.river,
250 this.yearEpoch, 256 this.yearEpoch,
251 kmLow, 257 kmLow,
519 } 525 }
520 526
521 527
522 /** 528 /**
523 * Transform values in load. 529 * Transform values in load.
530 * Background is to transform values measured in
531 * t/a to m^3/a or vice versa using the specific
532 * measured relationships.
533 *
524 * @param load The load of which values should be transformed. 534 * @param load The load of which values should be transformed.
535 * @param year The year at which to look at density (e.g. 2003).
536 *
525 * @return parameter load with transformed values. 537 * @return parameter load with transformed values.
526 */ 538 */
527 private SedimentLoad calculateUnit(SedimentLoad load, int year) { 539 private SedimentLoad calculateUnit(SedimentLoad load, int year) {
528 SedimentDensity density = 540 SedimentDensity density =
529 SedimentDensityFactory.getSedimentDensity(river, kmLow, kmUp, year); 541 SedimentDensityFactory.getSedimentDensity(river, kmLow, kmUp, year);

http://dive4elements.wald.intevation.org