comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/WQAdapted.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 e4606eae8ea5
children 2323d005f9a5 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
72 public WQAdapted() { 72 public WQAdapted() {
73 } 73 }
74 74
75 75
76 /** 76 /**
77 * This method creates one element for each gauge of the selected river that 77 * This method creates one element for each gauge of selected river that
78 * is intersected by the given kilometer range. Each element is a tuple of 78 * is intersected by the given kilometer range. Each element is a tuple of
79 * (from;to) where <i>from</i> is the lower bounds of the gauge or the lower 79 * (from;to) where <i>from</i> is the lower bounds of the gauge or
80 * the lower
80 * kilometer range. <i>to</i> is the upper bounds of the gauge or the upper 81 * kilometer range. <i>to</i> is the upper bounds of the gauge or the upper
81 * kilometer range. 82 * kilometer range.
82 * 83 *
83 * @param cr The ElementCreator. 84 * @param cr The ElementCreator.
84 * @param artifact The FLYS artifact. 85 * @param artifact The FLYS artifact.
173 174
174 double[] mmQ = determineMinMaxQ(gauge, wst); 175 double[] mmQ = determineMinMaxQ(gauge, wst);
175 double[] mmW = gauge.determineMinMaxW(); 176 double[] mmW = gauge.determineMinMaxW();
176 177
177 elements.add(createItem( 178 elements.add(createItem(
178 cr, new String[] { from + ";" + to, gauge.getName()}, mmQ, mmW)); 179 cr,
180 new String[] { from + ";" + to,
181 gauge.getName()},
182 mmQ,
183 mmW));
179 } 184 }
180 } 185 }
181 else { 186 else {
182 Collections.sort(gauges, GAUGE_DOWN); 187 Collections.sort(gauges, GAUGE_DOWN);
183 rangeFrom = dist[1]; 188 rangeFrom = dist[1];
194 199
195 double[] mmQ = determineMinMaxQ(gauge, wst); 200 double[] mmQ = determineMinMaxQ(gauge, wst);
196 double[] mmW = gauge.determineMinMaxW(); 201 double[] mmW = gauge.determineMinMaxW();
197 202
198 elements.add(createItem( 203 elements.add(createItem(
199 cr, new String[] { to + ";" + from, gauge.getName()}, mmQ, mmW)); 204 cr,
205 new String[] { to + ";" + from,
206 gauge.getName()},
207 mmQ,
208 mmW));
200 } 209 }
201 } 210 }
202 211
203 Element[] els = new Element[elements.size()]; 212 Element[] els = new Element[elements.size()];
204 return elements.toArray(els); 213 return elements.toArray(els);
316 } 325 }
317 else if (isQ) { 326 else if (isQ) {
318 return validateQ(artifact); 327 return validateQ(artifact);
319 } 328 }
320 else { 329 else {
321 throw new IllegalArgumentException("error_feed_no_wq_mode_selected"); 330 throw new IllegalArgumentException(
331 "error_feed_no_wq_mode_selected");
322 } 332 }
323 } 333 }
324 334
325 335
326 protected boolean validateW(Artifact artifact) 336 protected boolean validateW(Artifact artifact)

http://dive4elements.wald.intevation.org