Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/WaterlevelGroundDifferences.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | 714fda61b006 |
children | 2323d005f9a5 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
33 public static final String DIFF_FIELD = "diff_diff"; | 33 public static final String DIFF_FIELD = "diff_diff"; |
34 | 34 |
35 public static final double DEFAULT_STEP = 0d; | 35 public static final double DEFAULT_STEP = 0d; |
36 | 36 |
37 | 37 |
38 private static Logger logger = | 38 private static Logger log = |
39 Logger.getLogger(WaterlevelGroundDifferences.class); | 39 Logger.getLogger(WaterlevelGroundDifferences.class); |
40 | 40 |
41 | 41 |
42 protected String getLowerField() { | 42 protected String getLowerField() { |
43 return LOWER_FIELD; | 43 return LOWER_FIELD; |
86 if (minmax != null) { | 86 if (minmax != null) { |
87 minVal = minmax[0]; | 87 minVal = minmax[0]; |
88 maxVal = minmax[1]; | 88 maxVal = minmax[1]; |
89 } | 89 } |
90 else { | 90 else { |
91 logger.warn("Could not read min/max distance values!"); | 91 log.warn("Could not read min/max distance values!"); |
92 } | 92 } |
93 | 93 |
94 if (name.equals(LOWER_FIELD)) { | 94 if (name.equals(LOWER_FIELD)) { |
95 Element min = createItem( | 95 Element min = createItem( |
96 cr, | 96 cr, |
166 protected boolean validateBounds( | 166 protected boolean validateBounds( |
167 double fromValid, double toValid, | 167 double fromValid, double toValid, |
168 double from, double to | 168 double from, double to |
169 ) throws IllegalArgumentException { | 169 ) throws IllegalArgumentException { |
170 if (to < 0d) { | 170 if (to < 0d) { |
171 logger.error( | 171 log.error( |
172 "Invalid 'to' " + to + " is lesser than zero."); | 172 "Invalid 'to' " + to + " is lesser than zero."); |
173 throw new IllegalArgumentException("error_feed_from_out_of_range"); | 173 throw new IllegalArgumentException("error_feed_from_out_of_range"); |
174 } | 174 } |
175 return super.validateBounds(fromValid, toValid, from, to); | 175 return super.validateBounds(fromValid, toValid, from, to); |
176 } | 176 } |