Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java @ 7532:aeeabb580b12
Doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 07 Nov 2013 09:44:38 +0100 |
parents | 906ed0b1f3f1 |
children | b4117b8adb79 |
comparison
equal
deleted
inserted
replaced
7531:7302d2af815f | 7532:aeeabb580b12 |
---|---|
33 protected String river; | 33 protected String river; |
34 protected String yearEpoch; | 34 protected String yearEpoch; |
35 protected double kmUp; | 35 protected double kmUp; |
36 protected double kmLow; | 36 protected double kmLow; |
37 protected int[] period; | 37 protected int[] period; |
38 /** Years of chosen epochs. */ | 38 /** Years of chosen epochs. |
39 * epoch[0][0] is the start year of first entered epoch, e[0][1] the end-year. */ | |
39 protected int[][] epoch; | 40 protected int[][] epoch; |
40 protected String unit; | 41 protected String unit; |
41 | 42 |
42 public SedimentLoadCalculation() { | 43 public SedimentLoadCalculation() { |
43 } | 44 } |
211 if (sseSum != 0) { | 212 if (sseSum != 0) { |
212 resLoad.setSuspSediment(km, fr.getSuspSediment()/sseSum, fr.getSuspSedimentRange()); | 213 resLoad.setSuspSediment(km, fr.getSuspSediment()/sseSum, fr.getSuspSedimentRange()); |
213 } | 214 } |
214 } | 215 } |
215 | 216 |
216 /** Calculate result for an epoch. */ | 217 /** |
218 * Calculate result for the ith given epoch. | |
219 * @param i index of epoch (if multiple given). | |
220 */ | |
217 private SedimentLoadResult calculateEpoch(int i) { | 221 private SedimentLoadResult calculateEpoch(int i) { |
218 List<SedimentLoad> epochLoads = new ArrayList<SedimentLoad>(); | 222 List<SedimentLoad> epochLoads = new ArrayList<SedimentLoad>(); |
219 for (int j = epoch[i][0]; j < epoch[i][1]; j++) { | 223 for (int j = epoch[i][0]; j < epoch[i][1]; j++) { |
220 epochLoads.add(SedimentLoadFactory.getLoadWithData( | 224 epochLoads.add(SedimentLoadFactory.getLoadWithData( |
221 this.river, | 225 this.river, |