Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/access/SedimentLoadAccess.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 | 306a16d3ac2e |
children | 90727aa9913d |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
16 | 16 |
17 | 17 |
18 public class SedimentLoadAccess | 18 public class SedimentLoadAccess |
19 extends RangeAccess | 19 extends RangeAccess |
20 { | 20 { |
21 private static final Logger logger = Logger.getLogger(SedimentLoadAccess.class); | 21 private static final Logger log = Logger.getLogger(SedimentLoadAccess.class); |
22 | 22 |
23 private String time; | 23 private String time; |
24 private String unit; | 24 private String unit; |
25 | 25 |
26 private int [][] epochs; | 26 private int [][] epochs; |
55 } | 55 } |
56 if (getYearEpoch().equals("year") ) { | 56 if (getYearEpoch().equals("year") ) { |
57 Integer start = getInteger("start"); | 57 Integer start = getInteger("start"); |
58 Integer end = getInteger("end"); | 58 Integer end = getInteger("end"); |
59 if (start == null || end == null) { | 59 if (start == null || end == null) { |
60 logger.warn("No 'start' or 'end' parameter specified!"); | 60 log.warn("No 'start' or 'end' parameter specified!"); |
61 return null; | 61 return null; |
62 } | 62 } |
63 | 63 |
64 period = new int[]{start.intValue(), end.intValue()}; | 64 period = new int[]{start.intValue(), end.intValue()}; |
65 return period; | 65 return period; |
79 } | 79 } |
80 | 80 |
81 String data = getString("epochs"); | 81 String data = getString("epochs"); |
82 | 82 |
83 if (data == null) { | 83 if (data == null) { |
84 logger.warn("No 'epochs' parameter specified!"); | 84 log.warn("No 'epochs' parameter specified!"); |
85 return null; | 85 return null; |
86 } | 86 } |
87 | 87 |
88 String[] parts = data.split(";"); | 88 String[] parts = data.split(";"); |
89 | 89 |
96 ints.add(Integer.parseInt(values[0])); | 96 ints.add(Integer.parseInt(values[0])); |
97 ints.add(Integer.parseInt(values[1])); | 97 ints.add(Integer.parseInt(values[1])); |
98 epochs[i] = ints.toNativeArray(); | 98 epochs[i] = ints.toNativeArray(); |
99 } | 99 } |
100 catch (NumberFormatException nfe) { | 100 catch (NumberFormatException nfe) { |
101 logger.warn("Cannot parse int from string: '" + values + "'"); | 101 log.warn("Cannot parse int from string: '" + values + "'"); |
102 } | 102 } |
103 } | 103 } |
104 return epochs; | 104 return epochs; |
105 } | 105 } |
106 | 106 |