comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java @ 4827:15e55fdbb402

RangeAccess: Doc and debug.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 21 Jan 2013 17:34:56 +0100
parents f8217f1fef2e
children c9a27912840d
comparison
equal deleted inserted replaced
4826:a3dc382bc1ca 4827:15e55fdbb402
26 super(artifact); 26 super(artifact);
27 this.context = context; 27 this.context = context;
28 } 28 }
29 29
30 30
31 /** Return ld_from data. */ 31 /** Return ld_from data (in km). */
32 public double getFrom() { 32 public double getFrom() {
33 if (from == null) { 33 if (from == null) {
34 from = getDouble("ld_from"); 34 from = getDouble("ld_from");
35 }
36
37 if (logger.isDebugEnabled()) {
38 logger.debug("from: '" + from + "'");
35 } 39 }
36 40
37 return from.doubleValue(); 41 return from.doubleValue();
38 } 42 }
39 43
40 44
41 /** Return ld_to data. */ 45 /** Return ld_to data (in km). */
42 public double getTo() { 46 public double getTo() {
43 if (to == null) { 47 if (to == null) {
44 to = getDouble("ld_to"); 48 to = getDouble("ld_to");
45 } 49 }
50
51 if (logger.isDebugEnabled()) {
52 logger.debug("to: '" + to + "'");
53 }
54
46 return to.doubleValue(); 55 return to.doubleValue();
47 } 56 }
48 57
49 58
50 /** Step width for calculation. */ 59 /** Step width for calculation. */

http://dive4elements.wald.intevation.org