Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FlowVelocityCalculation.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 |
---|---|
20 | 20 |
21 private static final Logger logger = | 21 private static final Logger logger = |
22 Logger.getLogger(FlowVelocityCalculation.class); | 22 Logger.getLogger(FlowVelocityCalculation.class); |
23 | 23 |
24 | 24 |
25 | |
26 public CalculationResult calculate(FlowVelocityAccess access) { | 25 public CalculationResult calculate(FlowVelocityAccess access) { |
27 logger.info("FlowVelocityCalculation.calculate"); | 26 logger.info("FlowVelocityCalculation.calculate"); |
28 | 27 |
29 int[] mainIds = access.getMainChannels(); | 28 int[] mainIds = access.getMainChannels(); |
30 int[] totalIds = access.getTotalChannels(); | 29 int[] totalIds = access.getTotalChannels(); |
31 | 30 |
32 if (logger.isDebugEnabled()) { | 31 if (logger.isDebugEnabled()) { |
33 Artifact a = access.getArtifact(); | 32 Artifact a = access.getArtifact(); |
34 logger.debug("Artifact '" + a.identifier() + "' contains:"); | 33 logger.debug("Artifact '" + a.identifier() + "' contains:"); |
35 if (mainIds != null) { | 34 if (mainIds != null) { |
36 logger.debug(" " + mainIds.length + " main channel ids"); | 35 logger.debug(" " + mainIds.length + " main channel ids"); |
37 } | 36 } |
38 | 37 |
77 return zones; | 76 return zones; |
78 } | 77 } |
79 | 78 |
80 | 79 |
81 protected List<FlowVelocityModel> getFlowVelocityModels( | 80 protected List<FlowVelocityModel> getFlowVelocityModels( |
82 FlowVelocityAccess access, | 81 FlowVelocityAccess access, |
83 List<DischargeZone> zones | 82 List<DischargeZone> zones |
84 ) { | 83 ) { |
85 River river = FLYSUtils.getRiver(access.getArtifact()); | 84 River river = FLYSUtils.getRiver(access.getArtifact()); |
86 | 85 |
87 List<FlowVelocityModel> models = new ArrayList<FlowVelocityModel>(); | 86 List<FlowVelocityModel> models = new ArrayList<FlowVelocityModel>(); |
130 } | 129 } |
131 } | 130 } |
132 | 131 |
133 | 132 |
134 protected CalculationResult buildCalculationResult( | 133 protected CalculationResult buildCalculationResult( |
135 FlowVelocityAccess access, | 134 FlowVelocityAccess access, |
136 List<FlowVelocityModel> models | 135 List<FlowVelocityModel> models |
137 ) { | 136 ) { |
138 double kmLo = access.getLowerKM(); | 137 double kmLo = access.getLowerKM(); |
139 double kmHi = access.getUpperKM(); | 138 double kmHi = access.getUpperKM(); |
140 | 139 |