comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/DataFacet.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 8c64617a7991
children
comparison
equal deleted inserted replaced
9424:da19f1f58d72 9425:3f49835a00c3
107 // FIXME: why not use the full constructor instead? would also fix the next problem 107 // FIXME: why not use the full constructor instead? would also fix the next problem
108 DataFacet copy = new DataFacet(); 108 DataFacet copy = new DataFacet();
109 // FIXME: usage of internal knowledge of parent class... 109 // FIXME: usage of internal knowledge of parent class...
110 // Either the set method should be correctly overwritten, or implement a correct copy-constructor! 110 // Either the set method should be correctly overwritten, or implement a correct copy-constructor!
111 copy.set(this); 111 copy.set(this);
112 // FIXME: instead we need to overwrite set and call it here
112 copy.type = type; 113 copy.type = type;
113 copy.hash = hash; 114 copy.hash = hash;
114 copy.stateId = stateId; 115 copy.stateId = stateId;
115 return copy; 116 return copy;
116 } 117 }

http://dive4elements.wald.intevation.org