comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/RelativePointFacet.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 5e38e2924c07
children
comparison
equal deleted inserted replaced
9424:da19f1f58d72 9425:3f49835a00c3
161 */ 161 */
162 @Override 162 @Override
163 public Object getData(Artifact artifact, CallContext context) { 163 public Object getData(Artifact artifact, CallContext context) {
164 WKms wKms = null; 164 WKms wKms = null;
165 if (artifact instanceof StaticWKmsArtifact) { 165 if (artifact instanceof StaticWKmsArtifact) {
166 wKms = ((StaticWKmsArtifact) artifact).getWKms(0); 166 wKms = ((StaticWKmsArtifact) artifact).getWKms();
167 } 167 }
168 else if (artifact instanceof StaticWQKmsArtifact) { 168 else if (artifact instanceof StaticWQKmsArtifact) {
169 wKms = ((StaticWQKmsArtifact) artifact).getWQKms(); 169 wKms = ((StaticWQKmsArtifact) artifact).getWQKms();
170 } 170 }
171 else { 171 else {

http://dive4elements.wald.intevation.org