Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DurationCurveFacet.java @ 705:853dceead0f4
Only generate facets when needed.
flys-artifacts/trunk@2157 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 18 Jun 2011 17:03:17 +0000 |
parents | b972eba2ed8a |
children | 3b7e9ddf6bb1 |
comparison
equal
deleted
inserted
replaced
704:eab5e5089d77 | 705:853dceead0f4 |
---|---|
25 public Object getData(Artifact artifact, CallContext context) { | 25 public Object getData(Artifact artifact, CallContext context) { |
26 logger.debug("Get data for duration curve data at index: " + index); | 26 logger.debug("Get data for duration curve data at index: " + index); |
27 | 27 |
28 WINFOArtifact winfo = (WINFOArtifact) artifact; | 28 WINFOArtifact winfo = (WINFOArtifact) artifact; |
29 | 29 |
30 WQDay[] wqday = (WQDay[]) winfo.compute(context, ComputeType.ADVANCE); | 30 WQDay[] wqday = |
31 (WQDay[])winfo.compute(context, ComputeType.ADVANCE, false); | |
31 | 32 |
32 return wqday[index]; | 33 return wqday[index]; |
33 } | 34 } |
34 } | 35 } |
35 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 36 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |