Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityCalculation.java @ 7284:be0e3b93144c
issue1512: FlowVelocityCalculation: Opened prepareData(), added doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 11 Oct 2013 10:28:07 +0200 |
parents | a56fe3bc6700 |
children | e4606eae8ea5 |
comparison
equal
deleted
inserted
replaced
7283:8cd48a2a380b | 7284:be0e3b93144c |
---|---|
113 | 113 |
114 return models; | 114 return models; |
115 } | 115 } |
116 | 116 |
117 | 117 |
118 protected void prepareData( | 118 public static void prepareData( |
119 FlowVelocityData data, | 119 FlowVelocityData data, |
120 FlowVelocityModel model, | 120 FlowVelocityModel model, |
121 double kmLo, | 121 double kmLo, |
122 double kmHi | 122 double kmHi |
123 ) { | 123 ) { |
146 data.setZone(lo + " - " + hi); | 146 data.setZone(lo + " - " + hi); |
147 } | 147 } |
148 } | 148 } |
149 | 149 |
150 | 150 |
151 /** | |
152 * From the given models and range restrictions from access, | |
153 * create and return a calculationresult with flowvelocityDate. | |
154 */ | |
151 protected CalculationResult buildCalculationResult( | 155 protected CalculationResult buildCalculationResult( |
152 FlowVelocityAccess access, | 156 FlowVelocityAccess access, |
153 List<FlowVelocityModel> models | 157 List<FlowVelocityModel> models |
154 ) { | 158 ) { |
155 double kmLo = access.getLowerKM(); | 159 double kmLo = access.getLowerKM(); |
156 double kmHi = access.getUpperKM(); | 160 double kmHi = access.getUpperKM(); |
157 | 161 |