Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/ExtremeAccess.java @ 4332:0545002e112c
ExtremeAccess: Renamed log to logger, documentation.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 31 Oct 2012 13:44:36 +0100 |
parents | 270f3ac8a82e |
children | 2d3f8af87b7b |
comparison
equal
deleted
inserted
replaced
4331:cf419a37e836 | 4332:0545002e112c |
---|---|
13 | 13 |
14 /** Access data used for extreme value analysis. */ | 14 /** Access data used for extreme value analysis. */ |
15 public class ExtremeAccess | 15 public class ExtremeAccess |
16 extends RiverAccess | 16 extends RiverAccess |
17 { | 17 { |
18 private static Logger log = Logger.getLogger(ExtremeAccess.class); | 18 /** Our private logger. */ |
19 private static Logger logger = Logger.getLogger(ExtremeAccess.class); | |
19 | 20 |
20 protected Double from; | 21 protected Double from; |
21 protected Double to; | 22 protected Double to; |
22 protected Double step; | 23 protected Double step; |
23 | 24 |
32 | 33 |
33 | 34 |
34 public ExtremeAccess() { | 35 public ExtremeAccess() { |
35 } | 36 } |
36 | 37 |
38 | |
37 public ExtremeAccess(FLYSArtifact artifact) { | 39 public ExtremeAccess(FLYSArtifact artifact) { |
38 super(artifact); | 40 super(artifact); |
39 } | 41 } |
40 | 42 |
41 | 43 |
44 | 46 |
45 if (from == null) { | 47 if (from == null) { |
46 from = getDouble("ld_from"); | 48 from = getDouble("ld_from"); |
47 } | 49 } |
48 | 50 |
49 if (log.isDebugEnabled()) { | 51 if (logger.isDebugEnabled()) { |
50 log.debug("from: '" + from + "'"); | 52 logger.debug("from: '" + from + "'"); |
51 } | 53 } |
52 | 54 |
53 return from; | 55 return from; |
54 } | 56 } |
55 | 57 |
59 | 61 |
60 if (to == null) { | 62 if (to == null) { |
61 to = getDouble("ld_to"); | 63 to = getDouble("ld_to"); |
62 } | 64 } |
63 | 65 |
64 if (log.isDebugEnabled()) { | 66 if (logger.isDebugEnabled()) { |
65 log.debug("to: '" + to + "'"); | 67 logger.debug("to: '" + to + "'"); |
66 } | 68 } |
67 | 69 |
68 return to; | 70 return to; |
69 } | 71 } |
70 | 72 |
74 | 76 |
75 if (step == null) { | 77 if (step == null) { |
76 step = getDouble("ld_step"); | 78 step = getDouble("ld_step"); |
77 } | 79 } |
78 | 80 |
79 if (log.isDebugEnabled()) { | 81 if (logger.isDebugEnabled()) { |
80 log.debug("step: '" + step + "'"); | 82 logger.debug("step: '" + step + "'"); |
81 } | 83 } |
82 | 84 |
83 return step; | 85 return step; |
84 } | 86 } |
85 | 87 |
88 | |
89 /** Returns the percent given. */ | |
86 public Double getPercent() { | 90 public Double getPercent() { |
87 | 91 |
88 if (percent == null) { | 92 if (percent == null) { |
89 percent = getDouble("percent"); | 93 percent = getDouble("percent"); |
90 } | 94 } |
91 | 95 |
92 if (log.isDebugEnabled()) { | 96 if (logger.isDebugEnabled()) { |
93 log.debug("percent: '" + percent + "'"); | 97 logger.debug("percent: '" + percent + "'"); |
94 } | 98 } |
95 | 99 |
96 return percent; | 100 return percent; |
97 } | 101 } |
98 | 102 |
99 public String getFunction() { | 103 public String getFunction() { |
100 if (function == null) { | 104 if (function == null) { |
101 function = getString("function"); | 105 function = getString("function"); |
102 } | 106 } |
103 | 107 |
104 if (log.isDebugEnabled()) { | 108 if (logger.isDebugEnabled()) { |
105 log.debug("function: '" + function + "'"); | 109 logger.debug("function: '" + function + "'"); |
106 } | 110 } |
107 | 111 |
108 return function; | 112 return function; |
109 } | 113 } |
110 | 114 |
122 ranges.add(new RangeWithValues(from, to, values)); | 126 ranges.add(new RangeWithValues(from, to, values)); |
123 } | 127 } |
124 }); | 128 }); |
125 } | 129 } |
126 | 130 |
127 if (log.isDebugEnabled()) { | 131 if (logger.isDebugEnabled()) { |
128 log.debug("ranges: " + ranges); | 132 logger.debug("ranges: " + ranges); |
129 } | 133 } |
130 | 134 |
131 return ranges; | 135 return ranges; |
132 } | 136 } |
133 } | 137 } |