Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/extreme/ExtremeCurveFacet.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.extreme; | 9 package org.dive4elements.river.artifacts.model.extreme; |
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.ExtremeAccess; | 16 import org.dive4elements.river.artifacts.access.ExtremeAccess; |
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.FacetTypes; | 19 import org.dive4elements.river.artifacts.model.FacetTypes; |
75 * @return the data. | 75 * @return the data. |
76 */ | 76 */ |
77 @Override | 77 @Override |
78 public Object getData(Artifact artifact, CallContext context) { | 78 public Object getData(Artifact artifact, CallContext context) { |
79 logger.debug("ExtremeCurveFacet.getData"); | 79 logger.debug("ExtremeCurveFacet.getData"); |
80 if (artifact instanceof FLYSArtifact) { | 80 if (artifact instanceof D4EArtifact) { |
81 FLYSArtifact flys = (FLYSArtifact)artifact; | 81 D4EArtifact flys = (D4EArtifact)artifact; |
82 CalculationResult res = | 82 CalculationResult res = |
83 (CalculationResult) flys.compute(context, | 83 (CalculationResult) flys.compute(context, |
84 ComputeType.ADVANCE, | 84 ComputeType.ADVANCE, |
85 false); | 85 false); |
86 | 86 |
112 logger.debug("No curve at km = " + currentKm); | 112 logger.debug("No curve at km = " + currentKm); |
113 return null; | 113 return null; |
114 } | 114 } |
115 } | 115 } |
116 else { | 116 else { |
117 logger.debug("Not an instance of FLYSArtifact / WINFOArtifact."); | 117 logger.debug("Not an instance of D4EArtifact / WINFOArtifact."); |
118 return null; | 118 return null; |
119 } | 119 } |
120 } | 120 } |
121 | 121 |
122 | 122 |