Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java @ 4824:d5d2faf14522
BedHeightQualityAccess, RangeAccess: Refactored, moved getFrom/To to RangeAccess.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 21 Jan 2013 17:00:16 +0100 |
parents | 756aba0d2a7a |
children | f8217f1fef2e |
comparison
equal
deleted
inserted
replaced
4823:dd146d5ee99f | 4824:d5d2faf14522 |
---|---|
13 { | 13 { |
14 private static Logger logger = Logger.getLogger(RangeAccess.class); | 14 private static Logger logger = Logger.getLogger(RangeAccess.class); |
15 | 15 |
16 private CallContext context; | 16 private CallContext context; |
17 | 17 |
18 Double from; | |
19 | |
20 Double to; | |
21 | |
18 | 22 |
19 public RangeAccess(FLYSArtifact artifact, CallContext context) { | 23 public RangeAccess(FLYSArtifact artifact, CallContext context) { |
20 super(artifact); | 24 super(artifact); |
21 this.context = context; | 25 this.context = context; |
26 } | |
27 | |
28 | |
29 /** Return ld_from data. */ | |
30 public double getFrom() { | |
31 if (from == null) { | |
32 from = getDouble("ld_from"); | |
33 } | |
34 | |
35 return from.doubleValue(); | |
36 } | |
37 | |
38 | |
39 /** Return ld_to data. */ | |
40 public double getTo() { | |
41 if (to == null) { | |
42 to = getDouble("ld_to"); | |
43 } | |
44 return to.doubleValue(); | |
22 } | 45 } |
23 | 46 |
24 | 47 |
25 /** | 48 /** |
26 * Get min and max kilometer, independent of parametization | 49 * Get min and max kilometer, independent of parametization |