Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixOutlierFacet.java @ 5867:59ff03ff48f1
River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:23:01 +0200 |
parents | 4897a58c8746 |
children | af13ceeba52a |
comparison
equal
deleted
inserted
replaced
5866:9a6741ccf6d4 | 5867:59ff03ff48f1 |
---|---|
10 | 10 |
11 import org.apache.log4j.Logger; | 11 import org.apache.log4j.Logger; |
12 | 12 |
13 import org.dive4elements.artifacts.Artifact; | 13 import org.dive4elements.artifacts.Artifact; |
14 import org.dive4elements.artifacts.CallContext; | 14 import org.dive4elements.artifacts.CallContext; |
15 import org.dive4elements.river.artifacts.FLYSArtifact; | 15 import org.dive4elements.river.artifacts.D4EArtifact; |
16 import org.dive4elements.river.artifacts.model.CalculationResult; | 16 import org.dive4elements.river.artifacts.model.CalculationResult; |
17 import org.dive4elements.river.artifacts.model.FacetTypes; | 17 import org.dive4elements.river.artifacts.model.FacetTypes; |
18 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; | 18 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; |
19 import org.dive4elements.river.utils.KMIndex; | 19 import org.dive4elements.river.utils.KMIndex; |
20 | 20 |
48 | 48 |
49 | 49 |
50 /** | 50 /** |
51 * Returns the data this facet requires. | 51 * Returns the data this facet requires. |
52 * | 52 * |
53 * @param artifact the owner artifact; needs to be a FLYSArtifact. | 53 * @param artifact the owner artifact; needs to be a D4EArtifact. |
54 * @param context the CallContext; required to retrieve the value of | 54 * @param context the CallContext; required to retrieve the value of |
55 * <i>currentKm</i>. | 55 * <i>currentKm</i>. |
56 * | 56 * |
57 * @return an array of QW objects or null. | 57 * @return an array of QW objects or null. |
58 */ | 58 */ |
59 @Override | 59 @Override |
60 public Object getData(Artifact artifact, CallContext context) { | 60 public Object getData(Artifact artifact, CallContext context) { |
61 logger.debug("FixOutlierFacet.getData"); | 61 logger.debug("FixOutlierFacet.getData"); |
62 | 62 |
63 if (artifact instanceof FLYSArtifact) { | 63 if (artifact instanceof D4EArtifact) { |
64 FLYSArtifact flys = (FLYSArtifact)artifact; | 64 D4EArtifact flys = (D4EArtifact)artifact; |
65 | 65 |
66 CalculationResult res = | 66 CalculationResult res = |
67 (CalculationResult) flys.compute(context, | 67 (CalculationResult) flys.compute(context, |
68 ComputeType.ADVANCE, | 68 ComputeType.ADVANCE, |
69 false); | 69 false); |
88 } | 88 } |
89 | 89 |
90 return qws; | 90 return qws; |
91 } | 91 } |
92 | 92 |
93 logger.warn("Not an instance of FLYSArtifact."); | 93 logger.warn("Not an instance of D4EArtifact."); |
94 return null; | 94 return null; |
95 } | 95 } |
96 | 96 |
97 | 97 |
98 /** | 98 /** |