diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/FixAccess.java @ 4866:acfd48384835

Changed data field names in fix analsis to ld_from, ld_to, ld step. * Changed names in state model. * Changed data fields in artifact. * Use RangeAccess to get location/distance data.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 25 Jan 2013 11:53:04 +0100
parents 048a02e29808
children a929d9a9fa1e
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/FixAccess.java	Thu Jan 24 16:09:46 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/FixAccess.java	Fri Jan 25 11:53:04 2013 +0100
@@ -1,5 +1,6 @@
 package de.intevation.flys.artifacts.access;
 
+import de.intevation.artifacts.CallContext;
 import de.intevation.flys.artifacts.FLYSArtifact;
 
 import java.util.Arrays;
@@ -7,14 +8,10 @@
 import org.apache.log4j.Logger;
 
 public class FixAccess
-extends      RiverAccess
+extends      RangeAccess
 {
     private static Logger log = Logger.getLogger(FixAccess.class);
 
-    protected Double from;
-    protected Double to;
-    protected Double step;
-
     protected Long start;
     protected Long end;
 
@@ -27,50 +24,8 @@
 
     protected String  function;
 
-    public FixAccess() {
-    }
-
-    public FixAccess(FLYSArtifact artifact) {
-        super(artifact);
-    }
-
-    public Double getFrom() {
-
-        if (from == null) {
-            from = getDouble("from");
-        }
-
-        if (log.isDebugEnabled()) {
-            log.debug("from: '" + from + "'");
-        }
-
-        return from;
-    }
-
-    public Double getTo() {
-
-        if (to == null) {
-            to = getDouble("to");
-        }
-
-        if (log.isDebugEnabled()) {
-            log.debug("to: '" + to + "'");
-        }
-
-        return to;
-    }
-
-    public Double getStep() {
-
-        if (step == null) {
-            step = getDouble("step");
-        }
-
-        if (log.isDebugEnabled()) {
-            log.debug("step: '" + step + "'");
-        }
-
-        return step;
+    public FixAccess(FLYSArtifact artifact, CallContext context) {
+        super(artifact, context);
     }
 
     public Long getStart() {

http://dive4elements.wald.intevation.org