comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/MiddleBedHeightCalculation.java @ 3258:3c006a53e551

Replaced tabs with four spaces each. flys-artifacts/trunk@4895 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 08 Jul 2012 08:43:13 +0000
parents cdbc457e23e2
children 0f7abd95c6e2
comparison
equal deleted inserted replaced
3257:2aca387333d6 3258:3c006a53e551
30 int[] singleIds = access.getBedHeightSingleIDs(); 30 int[] singleIds = access.getBedHeightSingleIDs();
31 int[] epochIds = access.getBedHeightEpochIDs(); 31 int[] epochIds = access.getBedHeightEpochIDs();
32 32
33 33
34 if (logger.isDebugEnabled()) { 34 if (logger.isDebugEnabled()) {
35 Artifact artifact = access.getArtifact(); 35 Artifact artifact = access.getArtifact();
36 36
37 logger.debug("Artifact '" + artifact.identifier() + "' contains:"); 37 logger.debug("Artifact '" + artifact.identifier() + "' contains:");
38 if (singleIds != null) { 38 if (singleIds != null) {
39 logger.debug(" " + singleIds.length + " single bedheight ids"); 39 logger.debug(" " + singleIds.length + " single bedheight ids");
40 } 40 }
50 return buildCalculationResult(access, singles, epochs); 50 return buildCalculationResult(access, singles, epochs);
51 } 51 }
52 52
53 53
54 protected List<BedHeightSingle> getSingles( 54 protected List<BedHeightSingle> getSingles(
55 BedHeightAccess access, 55 BedHeightAccess access,
56 int[] ids 56 int[] ids
57 ) { 57 ) {
58 List<BedHeightSingle> singles = new ArrayList<BedHeightSingle>(); 58 List<BedHeightSingle> singles = new ArrayList<BedHeightSingle>();
59 59
60 for (int id: ids) { 60 for (int id: ids) {
61 BedHeightSingle s = BedHeightSingle.getBedHeightSingleById(id); 61 BedHeightSingle s = BedHeightSingle.getBedHeightSingleById(id);
72 return singles; 72 return singles;
73 } 73 }
74 74
75 75
76 protected List<BedHeightEpoch> getEpochs( 76 protected List<BedHeightEpoch> getEpochs(
77 BedHeightAccess access, 77 BedHeightAccess access,
78 int[] ids 78 int[] ids
79 ) { 79 ) {
80 List<BedHeightEpoch> epochs = new ArrayList<BedHeightEpoch>(); 80 List<BedHeightEpoch> epochs = new ArrayList<BedHeightEpoch>();
81 81
82 for (int id: ids) { 82 for (int id: ids) {
83 BedHeightEpoch e = BedHeightEpoch.getBedHeightEpochById(id); 83 BedHeightEpoch e = BedHeightEpoch.getBedHeightEpochById(id);
94 return epochs; 94 return epochs;
95 } 95 }
96 96
97 97
98 protected CalculationResult buildCalculationResult( 98 protected CalculationResult buildCalculationResult(
99 BedHeightAccess access, 99 BedHeightAccess access,
100 List<BedHeightSingle> singles, 100 List<BedHeightSingle> singles,
101 List<BedHeightEpoch> epochs 101 List<BedHeightEpoch> epochs
102 ) { 102 ) {
103 logger.info("MiddleBedHeightCalculation.buildCalculationResult"); 103 logger.info("MiddleBedHeightCalculation.buildCalculationResult");
104 104

http://dive4elements.wald.intevation.org