comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQFacet.java @ 3585:c105b4466b4e

Basedata in FixA WQ DC and diagram. flys-artifacts/trunk@5201 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 14 Aug 2012 08:42:08 +0000
parents 0f7abd95c6e2
children 5a28312aee99
comparison
equal deleted inserted replaced
3584:e60b011c6e0f 3585:c105b4466b4e
40 */ 40 */
41 @Override 41 @Override
42 public Object getData(Artifact artifact, CallContext context) { 42 public Object getData(Artifact artifact, CallContext context) {
43 WQKmsInterpolArtifact interpolData = 43 WQKmsInterpolArtifact interpolData =
44 (WQKmsInterpolArtifact) artifact; 44 (WQKmsInterpolArtifact) artifact;
45 return interpolData.getWQAtKm(10); 45 Double currentKm = (Double)context.getContextValue("currentKm");
46 return interpolData.getWQAtKm(currentKm);
46 } 47 }
47 48
48 49
49 /** 50 /**
50 * Create a deep copy of this Facet. 51 * Create a deep copy of this Facet.

http://dive4elements.wald.intevation.org