comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffCalculation.java @ 8202:e4606eae8ea5

sed src/**/*.java 's/logger/log/g'
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 12:58:17 +0200
parents 856701739443
children 5c3b36b519d0
comparison
equal deleted inserted replaced
8201:4b8c5a08de04 8202:e4606eae8ea5
21 * The input are either single year data or epochs. 21 * The input are either single year data or epochs.
22 */ 22 */
23 public class BedDiffCalculation 23 public class BedDiffCalculation
24 extends Calculation 24 extends Calculation
25 { 25 {
26 private static final Logger logger = 26 private static final Logger log =
27 Logger.getLogger(BedDiffCalculation.class); 27 Logger.getLogger(BedDiffCalculation.class);
28 28
29 protected String river; 29 protected String river;
30 protected int [][] heightIds; 30 protected int [][] heightIds;
31 31
32 public BedDiffCalculation() { 32 public BedDiffCalculation() {
33 } 33 }
34 34
35 public CalculationResult calculate(BedDifferencesAccess access, CallContext context) { 35 public CalculationResult calculate(BedDifferencesAccess access, CallContext context) {
36 logger.info("BedDiffCalculation.calculate"); 36 log.info("BedDiffCalculation.calculate");
37 37
38 this.river = access.getRiverName(); 38 this.river = access.getRiverName();
39 this.heightIds = access.extractHeightIds(context); 39 this.heightIds = access.extractHeightIds(context);
40 40
41 BedDiffYearResult [] results = new BedDiffYearResult[heightIds.length]; 41 BedDiffYearResult [] results = new BedDiffYearResult[heightIds.length];
59 } 59 }
60 60
61 private BedDiffYearResult calculateYearDifference( 61 private BedDiffYearResult calculateYearDifference(
62 BedHeightSingleData[] pair 62 BedHeightSingleData[] pair
63 ) { 63 ) {
64 logger.debug("BedDiffCalculation.calculateYearDifference"); 64 log.debug("BedDiffCalculation.calculateYearDifference");
65 BedHeightSingleData s1 = pair[0]; 65 BedHeightSingleData s1 = pair[0];
66 BedHeightSingleData s2 = pair[1]; 66 BedHeightSingleData s2 = pair[1];
67 67
68 TDoubleArrayList stations = s1.getStations(); 68 TDoubleArrayList stations = s1.getStations();
69 int size = stations.size(); 69 int size = stations.size();

http://dive4elements.wald.intevation.org