Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java @ 3044:37982acfe1a3
Documentation added.
flys-artifacts/trunk@4613 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 06 Jun 2012 15:44:59 +0000 |
parents | 2f7fed1eb4bf |
children | ed07dd55f487 |
comparison
equal
deleted
inserted
replaced
3043:22da13d1b180 | 3044:37982acfe1a3 |
---|---|
266 | 266 |
267 | 267 |
268 /** | 268 /** |
269 * Returns W at Km of WKms, searching linearly. | 269 * Returns W at Km of WKms, searching linearly. |
270 * Returns -1 if not found. | 270 * Returns -1 if not found. |
271 * @param wkms the WKms object to search for given km. | |
272 * @param km The searched km. | |
273 * @return W at given km if in WKms, -1 if not found. | |
271 */ | 274 */ |
272 public static double getWAtKm(WKms wkms, double km) { | 275 public static double getWAtKm(WKms wkms, double km) { |
273 // Uninformed search. | 276 // Uninformed search. |
274 int size = wkms.size(); | 277 int size = wkms.size(); |
275 for (int i = 0; i < size; i++) { | 278 for (int i = 0; i < size; i++) { |
284 | 287 |
285 /** | 288 /** |
286 * Get points of line describing the surface of water at cross section. | 289 * Get points of line describing the surface of water at cross section. |
287 * | 290 * |
288 * @return an array holding coordinates of points of surface of water ( | 291 * @return an array holding coordinates of points of surface of water ( |
289 * in the form {{x1, x2} {y1, y2}} ). | 292 * in the form {{x1, x2}, {y1, y2}} ). |
290 */ | 293 */ |
291 @Override | 294 @Override |
292 public Lines.LineData getWaterLines(int idx, FastCrossSectionLine csl) { | 295 public Lines.LineData getWaterLines(int idx, FastCrossSectionLine csl) { |
293 logger.debug("getWaterLines(" + idx + ")"); | 296 logger.debug("getWaterLines(" + idx + ")"); |
294 | 297 |