Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
4865:1358d0c8481c | 4866:acfd48384835 |
---|---|
1 package de.intevation.flys.artifacts.access; | 1 package de.intevation.flys.artifacts.access; |
2 | 2 |
3 import de.intevation.artifacts.CallContext; | |
3 import de.intevation.flys.artifacts.FLYSArtifact; | 4 import de.intevation.flys.artifacts.FLYSArtifact; |
4 | 5 |
5 import java.util.Arrays; | 6 import java.util.Arrays; |
6 | 7 |
7 import org.apache.log4j.Logger; | 8 import org.apache.log4j.Logger; |
8 | 9 |
9 public class FixAccess | 10 public class FixAccess |
10 extends RiverAccess | 11 extends RangeAccess |
11 { | 12 { |
12 private static Logger log = Logger.getLogger(FixAccess.class); | 13 private static Logger log = Logger.getLogger(FixAccess.class); |
13 | |
14 protected Double from; | |
15 protected Double to; | |
16 protected Double step; | |
17 | 14 |
18 protected Long start; | 15 protected Long start; |
19 protected Long end; | 16 protected Long end; |
20 | 17 |
21 protected Integer qSectorStart; | 18 protected Integer qSectorStart; |
25 | 22 |
26 protected Boolean preprocessing; | 23 protected Boolean preprocessing; |
27 | 24 |
28 protected String function; | 25 protected String function; |
29 | 26 |
30 public FixAccess() { | 27 public FixAccess(FLYSArtifact artifact, CallContext context) { |
31 } | 28 super(artifact, context); |
32 | |
33 public FixAccess(FLYSArtifact artifact) { | |
34 super(artifact); | |
35 } | |
36 | |
37 public Double getFrom() { | |
38 | |
39 if (from == null) { | |
40 from = getDouble("from"); | |
41 } | |
42 | |
43 if (log.isDebugEnabled()) { | |
44 log.debug("from: '" + from + "'"); | |
45 } | |
46 | |
47 return from; | |
48 } | |
49 | |
50 public Double getTo() { | |
51 | |
52 if (to == null) { | |
53 to = getDouble("to"); | |
54 } | |
55 | |
56 if (log.isDebugEnabled()) { | |
57 log.debug("to: '" + to + "'"); | |
58 } | |
59 | |
60 return to; | |
61 } | |
62 | |
63 public Double getStep() { | |
64 | |
65 if (step == null) { | |
66 step = getDouble("step"); | |
67 } | |
68 | |
69 if (log.isDebugEnabled()) { | |
70 log.debug("step: '" + step + "'"); | |
71 } | |
72 | |
73 return step; | |
74 } | 29 } |
75 | 30 |
76 public Long getStart() { | 31 public Long getStart() { |
77 | 32 |
78 if (start == null) { | 33 if (start == null) { |