Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/WaterlevelSelectState.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 |
---|---|
158 } | 158 } |
159 else if (rawData instanceof WKms[]) { | 159 else if (rawData instanceof WKms[]) { |
160 wkms = (WKms[]) rawData; | 160 wkms = (WKms[]) rawData; |
161 } | 161 } |
162 else if (artifact instanceof StaticWKmsArtifact) { | 162 else if (artifact instanceof StaticWKmsArtifact) { |
163 wkms = new WKms[] {((StaticWKmsArtifact) artifact).getWKms(0)}; | 163 wkms = new WKms[] {((StaticWKmsArtifact) artifact).getWKms()}; |
164 } | 164 } |
165 else { | 165 else { |
166 if (rawData == null) { | 166 if (rawData == null) { |
167 log.error("Do not know how to handle null data " + | 167 log.error("Do not know how to handle null data " + |
168 "from artifact class " + artifact.getClass()); | 168 "from artifact class " + artifact.getClass()); |