Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/WDifferencesState.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 | 6b93a2498e06 |
children |
comparison
equal
deleted
inserted
replaced
9424:da19f1f58d72 | 9425:3f49835a00c3 |
---|---|
135 | 135 |
136 WKms retval = null; | 136 WKms retval = null; |
137 if (d4eArtifact instanceof StaticWKmsArtifact) { | 137 if (d4eArtifact instanceof StaticWKmsArtifact) { |
138 StaticWKmsArtifact staticWKms = (StaticWKmsArtifact) d4eArtifact; | 138 StaticWKmsArtifact staticWKms = (StaticWKmsArtifact) d4eArtifact; |
139 log.debug("WDifferencesState obtain data from StaticWKms"); | 139 log.debug("WDifferencesState obtain data from StaticWKms"); |
140 WKms wkms = staticWKms.getWKms(idx, from, to); | 140 WKms wkms = staticWKms.getWKms(from, to); |
141 if (wkms == null) { | 141 if (wkms == null) { |
142 log.error("No WKms from Static artifact for this range."); | 142 log.error("No WKms from Static artifact for this range."); |
143 // FIXME: why does in error case we return Q's? | 143 // FIXME: why does in error case we return Q's? |
144 return new WQKms(); | 144 return new WQKms(); |
145 } | 145 } |