Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.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 |
---|---|
1013 return (WQKms) computed; | 1013 return (WQKms) computed; |
1014 } | 1014 } |
1015 else if (computed == null && src instanceof StaticWKmsArtifact) { | 1015 else if (computed == null && src instanceof StaticWKmsArtifact) { |
1016 // Floodmarks and protection. | 1016 // Floodmarks and protection. |
1017 WQKms wqkms = WQKms.fromWKms( | 1017 WQKms wqkms = WQKms.fromWKms( |
1018 ((StaticWKmsArtifact)src).getWKms(0), 1d); | 1018 ((StaticWKmsArtifact)src).getWKms(), 1d); |
1019 return wqkms; | 1019 return wqkms; |
1020 } | 1020 } |
1021 | 1021 |
1022 log.warn("getWQKms cannot handle " + computed.getClass() | 1022 log.warn("getWQKms cannot handle " + computed.getClass() |
1023 + " " + src.getClass()); | 1023 + " " + src.getClass()); |