comparison artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.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 73da40528cf2
children af13ceeba52a
comparison
equal deleted inserted replaced
5866:9a6741ccf6d4 5867:59ff03ff48f1
44 import org.dive4elements.river.utils.RiverUtils; 44 import org.dive4elements.river.utils.RiverUtils;
45 45
46 46
47 /** 47 /**
48 * Artifact to access main and extreme values of a river. 48 * Artifact to access main and extreme values of a river.
49 * This artifact neglects (Static)FLYSArtifacts capabilities of interaction 49 * This artifact neglects (Static)D4EArtifacts capabilities of interaction
50 * with the StateEngine by overriding the getState*-methods. 50 * with the StateEngine by overriding the getState*-methods.
51 */ 51 */
52 public class MainValuesArtifact 52 public class MainValuesArtifact
53 extends StaticFLYSArtifact 53 extends StaticD4EArtifact
54 implements FacetTypes 54 implements FacetTypes
55 { 55 {
56 /** The logger for this class. */ 56 /** The logger for this class. */
57 private static Logger logger = Logger.getLogger(MainValuesArtifact.class); 57 private static Logger logger = Logger.getLogger(MainValuesArtifact.class);
58 58
197 197
198 /** Get important data from the 'calling' artifact. */ 198 /** Get important data from the 'calling' artifact. */
199 @Override 199 @Override
200 protected void initialize(Artifact artifact, Object context, CallMeta meta) { 200 protected void initialize(Artifact artifact, Object context, CallMeta meta) {
201 logger.debug("MainValuesArtifact.initialize"); 201 logger.debug("MainValuesArtifact.initialize");
202 FLYSArtifact winfo = (FLYSArtifact) artifact; 202 D4EArtifact winfo = (D4EArtifact) artifact;
203 RangeAccess rangeAccess = new RangeAccess(winfo, null); 203 RangeAccess rangeAccess = new RangeAccess(winfo, null);
204 double [] locations = rangeAccess.getKmRange(); 204 double [] locations = rangeAccess.getKmRange();
205 205
206 if (locations != null) { 206 if (locations != null) {
207 double location = locations[0]; 207 double location = locations[0];

http://dive4elements.wald.intevation.org