comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsFacet.java @ 9425:3f49835a00c3

Extended CrossSectionFacet so it may fetch different data from within the artifact result. Also allows to have acces to the potentially already computed artifact result via its normal computation cache.
author gernotbelger
date Fri, 17 Aug 2018 15:31:02 +0200
parents af13ceeba52a
children
comparison
equal deleted inserted replaced
9424:da19f1f58d72 9425:3f49835a00c3
42 */ 42 */
43 @Override 43 @Override
44 public Object getData(Artifact artifact, CallContext context) { 44 public Object getData(Artifact artifact, CallContext context) {
45 StaticWKmsArtifact staticData = 45 StaticWKmsArtifact staticData =
46 (StaticWKmsArtifact) artifact; 46 (StaticWKmsArtifact) artifact;
47 return staticData.getWKms(0); 47 return staticData.getWKms();
48 } 48 }
49 49
50 50
51 /** 51 /**
52 * Create a deep copy of this Facet. 52 * Create a deep copy of this Facet.

http://dive4elements.wald.intevation.org