Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffCalculation.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 | 5f60bd7c4b42 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
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( |
36 BedDifferencesAccess access, | |
37 CallContext context | |
38 ) { | |
36 log.info("BedDiffCalculation.calculate"); | 39 log.info("BedDiffCalculation.calculate"); |
37 | 40 |
38 this.river = access.getRiverName(); | 41 this.river = access.getRiverName(); |
39 this.heightIds = access.extractHeightIds(context); | 42 this.heightIds = access.extractHeightIds(context); |
40 double from = access.getFrom(true); | 43 double from = access.getFrom(true); |
51 | 54 |
52 return new CalculationResult(results, this); | 55 return new CalculationResult(results, this); |
53 } | 56 } |
54 | 57 |
55 /** Get two BedHeights from factory. */ | 58 /** Get two BedHeights from factory. */ |
56 private static BedHeightData [] getHeightPair(int [] ids, double from, double to) { | 59 private static BedHeightData [] getHeightPair( |
60 int [] ids, | |
61 double from, | |
62 double to | |
63 ) { | |
57 return new BedHeightData [] { | 64 return new BedHeightData [] { |
58 (BedHeightData)BedHeightFactory.getHeight("single", ids[0], from, to), | 65 (BedHeightData)BedHeightFactory.getHeight( |
59 (BedHeightData)BedHeightFactory.getHeight("single", ids[1], from, to) | 66 "single", ids[0], from, to), |
67 (BedHeightData)BedHeightFactory.getHeight( | |
68 "single", ids[1], from, to) | |
60 }; | 69 }; |
61 } | 70 } |
62 | 71 |
63 private BedDiffYearResult calculateYearDifference( | 72 private BedDiffYearResult calculateYearDifference( |
64 BedHeightData[] pair, | 73 BedHeightData[] pair, |