comparison artifacts/src/main/java/org/dive4elements/river/artifacts/access/Calculation4Access.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
6 * documentation coming with Dive4Elements River for details. 6 * documentation coming with Dive4Elements River for details.
7 */ 7 */
8 8
9 package org.dive4elements.river.artifacts.access; 9 package org.dive4elements.river.artifacts.access;
10 10
11 import org.dive4elements.river.artifacts.FLYSArtifact; 11 import org.dive4elements.river.artifacts.D4EArtifact;
12 12
13 import org.dive4elements.river.artifacts.model.Segment; 13 import org.dive4elements.river.artifacts.model.Segment;
14 14
15 import java.util.Collections; 15 import java.util.Collections;
16 import java.util.List; 16 import java.util.List;
31 protected Boolean isQ; 31 protected Boolean isQ;
32 32
33 protected Boolean isRange; 33 protected Boolean isRange;
34 34
35 35
36 public Calculation4Access(FLYSArtifact artifact) { 36 public Calculation4Access(D4EArtifact artifact) {
37 super(artifact, null); 37 super(artifact, null);
38 } 38 }
39 39
40 public List<Segment> getSegments() { 40 public List<Segment> getSegments() {
41 if (segments == null) { 41 if (segments == null) {
72 // XXX: Is this really needed in this calculation? 72 // XXX: Is this really needed in this calculation?
73 if (!isRange()) { 73 if (!isRange()) {
74 return null; 74 return null;
75 } 75 }
76 76
77 // XXX: FLYSArtifact sucks! 77 // XXX: D4EArtifact sucks!
78 // TODO further use RangeAccess functionality. 78 // TODO further use RangeAccess functionality.
79 double [] fromTo = getKmRange(); 79 double [] fromTo = getKmRange();
80 80
81 if (fromTo == null) { 81 if (fromTo == null) {
82 return null; 82 return null;

http://dive4elements.wald.intevation.org