Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java @ 456:af1b64ec7250
The curve of a computed discharge curve has a human readable text now.
flys-artifacts/trunk@1954 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 19 May 2011 12:33:12 +0000 |
parents | 7137ef65c17c |
children | 929137ee8154 |
comparison
equal
deleted
inserted
replaced
455:7137ef65c17c | 456:af1b64ec7250 |
---|---|
434 WstValueTable wst = WstValueTableFactory.getTable(r); | 434 WstValueTable wst = WstValueTableFactory.getTable(r); |
435 if (wst == null) { | 435 if (wst == null) { |
436 throw new NullPointerException("No Wst found for selected river."); | 436 throw new NullPointerException("No Wst found for selected river."); |
437 } | 437 } |
438 | 438 |
439 WQKms wqkms = computeDischargeCurveData(wst, locations[0]); | |
440 | |
439 // TODO Introduce a caching mechanism here! | 441 // TODO Introduce a caching mechanism here! |
440 | 442 |
441 return computeDischargeCurveData(wst, locations[0]); | 443 setComputedDischargeCurveNames(wqkms, locations[0]); |
444 | |
445 return wqkms; | |
446 } | |
447 | |
448 | |
449 /** | |
450 * Sets the name of the computed discharge curve data. | |
451 * | |
452 * @param wqkms The computed WQKms object. | |
453 * @param l The location used for the computation. | |
454 */ | |
455 public static void setComputedDischargeCurveNames(WQKms wqkms, double l) { | |
456 wqkms.setName(Double.toString(l)); | |
442 } | 457 } |
443 | 458 |
444 | 459 |
445 /** | 460 /** |
446 * Computes the data used to create computed discharge curves. | 461 * Computes the data used to create computed discharge curves. |