Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixLongitudinalReferenceFacet.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 |
---|---|
9 package org.dive4elements.river.artifacts.model.fixings; | 9 package org.dive4elements.river.artifacts.model.fixings; |
10 | 10 |
11 import org.dive4elements.artifacts.Artifact; | 11 import org.dive4elements.artifacts.Artifact; |
12 import org.dive4elements.artifacts.CallContext; | 12 import org.dive4elements.artifacts.CallContext; |
13 | 13 |
14 import org.dive4elements.river.artifacts.FLYSArtifact; | 14 import org.dive4elements.river.artifacts.D4EArtifact; |
15 | 15 |
16 import org.dive4elements.river.artifacts.access.FixAnalysisAccess; | 16 import org.dive4elements.river.artifacts.access.FixAnalysisAccess; |
17 | 17 |
18 import org.dive4elements.river.artifacts.model.CalculationResult; | 18 import org.dive4elements.river.artifacts.model.CalculationResult; |
19 import org.dive4elements.river.artifacts.model.DataFacet; | 19 import org.dive4elements.river.artifacts.model.DataFacet; |
68 */ | 68 */ |
69 @Override | 69 @Override |
70 public Object getData(Artifact artifact, CallContext context) { | 70 public Object getData(Artifact artifact, CallContext context) { |
71 logger.debug("FixLongitudinalReferenceFacet.getData"); | 71 logger.debug("FixLongitudinalReferenceFacet.getData"); |
72 | 72 |
73 if (artifact instanceof FLYSArtifact) { | 73 if (artifact instanceof D4EArtifact) { |
74 FLYSArtifact flys = (FLYSArtifact)artifact; | 74 D4EArtifact flys = (D4EArtifact)artifact; |
75 FixAnalysisAccess access = new FixAnalysisAccess(flys, context); | 75 FixAnalysisAccess access = new FixAnalysisAccess(flys, context); |
76 | 76 |
77 CalculationResult res = | 77 CalculationResult res = |
78 (CalculationResult) flys.compute(context, | 78 (CalculationResult) flys.compute(context, |
79 ComputeType.ADVANCE, | 79 ComputeType.ADVANCE, |
100 } | 100 } |
101 } | 101 } |
102 return resReference; | 102 return resReference; |
103 } | 103 } |
104 else { | 104 else { |
105 logger.warn("Artifact is no instance of FLYSArtifact."); | 105 logger.warn("Artifact is no instance of D4EArtifact."); |
106 return null; | 106 return null; |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
110 | 110 |