comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensityFacet.java @ 7206:cb3965dbf22e

issue1435: SedimentDensityFacet: Access sediment density data.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 30 Sep 2013 17:31:10 +0200
parents e798658cc0ed
children 42076d94977e
comparison
equal deleted inserted replaced
7205:e798658cc0ed 7206:cb3965dbf22e
45 public Object getData(Artifact artifact, CallContext context) { 45 public Object getData(Artifact artifact, CallContext context) {
46 logger.debug("Get data for sediment density at index: " + index); 46 logger.debug("Get data for sediment density at index: " + index);
47 47
48 D4EArtifact flys = (D4EArtifact) artifact; 48 D4EArtifact flys = (D4EArtifact) artifact;
49 49
50 CalculationResult res = (CalculationResult) flys.compute(context, hash, 50 SedimentDensity res = (SedimentDensity) flys.compute(context, hash,
51 stateId, type, false); 51 stateId, type, false);
52 52
53 if (res == null) { 53 if (res == null) {
54 logger.error("No CalculationResult"); 54 logger.error("No SedimentDensity");
55 } 55 }
56 56
57 return null; 57 return res;
58 } 58 }
59 59
60 60
61 /** Copy deeply. */ 61 /** Copy deeply. */
62 @Override 62 @Override

http://dive4elements.wald.intevation.org