Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Thu May 19 09:54:57 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Thu May 19 12:33:12 2011 +0000 @@ -436,9 +436,24 @@ throw new NullPointerException("No Wst found for selected river."); } + WQKms wqkms = computeDischargeCurveData(wst, locations[0]); + // TODO Introduce a caching mechanism here! - return computeDischargeCurveData(wst, locations[0]); + setComputedDischargeCurveNames(wqkms, locations[0]); + + return wqkms; + } + + + /** + * Sets the name of the computed discharge curve data. + * + * @param wqkms The computed WQKms object. + * @param l The location used for the computation. + */ + public static void setComputedDischargeCurveNames(WQKms wqkms, double l) { + wqkms.setName(Double.toString(l)); }