comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java @ 4825:f8217f1fef2e

ExtremeAccess, RangeAccess and callers: Refactored, moved getStep to RangeAccess. Inherit from RangeAccess, adjusted constructor and callers.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 21 Jan 2013 17:11:10 +0100
parents d5d2faf14522
children 15e55fdbb402
comparison
equal deleted inserted replaced
4824:d5d2faf14522 4825:f8217f1fef2e
16 private CallContext context; 16 private CallContext context;
17 17
18 Double from; 18 Double from;
19 19
20 Double to; 20 Double to;
21
22 Double step;
21 23
22 24
23 public RangeAccess(FLYSArtifact artifact, CallContext context) { 25 public RangeAccess(FLYSArtifact artifact, CallContext context) {
24 super(artifact); 26 super(artifact);
25 this.context = context; 27 this.context = context;
43 } 45 }
44 return to.doubleValue(); 46 return to.doubleValue();
45 } 47 }
46 48
47 49
50 /** Step width for calculation. */
51 public Double getStep() {
52
53 if (step == null) {
54 step = getDouble("ld_step");
55 }
56
57 if (logger.isDebugEnabled()) {
58 logger.debug("step: '" + step + "'");
59 }
60
61 return step;
62 }
63
64
48 /** 65 /**
49 * Get min and max kilometer, independent of parametization 66 * Get min and max kilometer, independent of parametization
50 * (ld_from/to vs ld_locations). 67 * (ld_from/to vs ld_locations).
51 */ 68 */
52 public double[] getKmRange() { 69 public double[] getKmRange() {

http://dive4elements.wald.intevation.org