Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataFacet.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 | 4b2b7593815c |
children | c657ddcf1fa6 |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
40 | 40 |
41 /** Facet to access various sediment loads. */ | 41 /** Facet to access various sediment loads. */ |
42 public class SedimentLoadDataFacet | 42 public class SedimentLoadDataFacet |
43 extends DataFacet | 43 extends DataFacet |
44 { | 44 { |
45 /** Very own logger. */ | 45 /** Very own log. */ |
46 private static Logger logger = Logger.getLogger(SedimentLoadDataFacet.class); | 46 private static Logger log = Logger.getLogger(SedimentLoadDataFacet.class); |
47 | 47 |
48 private static final String BASE_NAME = "sedimentload"; | 48 private static final String BASE_NAME = "sedimentload"; |
49 | 49 |
50 public String fraction; | 50 public String fraction; |
51 | 51 |
97 | 97 |
98 CalculationResult res = (CalculationResult) flys.compute(context, hash, stateId, type, false); | 98 CalculationResult res = (CalculationResult) flys.compute(context, hash, stateId, type, false); |
99 Object payload = res.getData(); | 99 Object payload = res.getData(); |
100 | 100 |
101 if (!(payload instanceof SedimentLoadDataResult)) { | 101 if (!(payload instanceof SedimentLoadDataResult)) { |
102 logger.error("Invalid result!"); | 102 log.error("Invalid result!"); |
103 } | 103 } |
104 | 104 |
105 SedimentLoadDataResult sdResult = (SedimentLoadDataResult) payload; | 105 SedimentLoadDataResult sdResult = (SedimentLoadDataResult) payload; |
106 | 106 |
107 List<Fraction> fractions = sdResult.getFractions(); | 107 List<Fraction> fractions = sdResult.getFractions(); |
108 | 108 |
109 if (fractions.size() < index + 1) { | 109 if (fractions.size() < index + 1) { |
110 logger.error("No result for fraction '" + fraction + | 110 log.error("No result for fraction '" + fraction + |
111 "' and period '" + period + "'"); | 111 "' and period '" + period + "'"); |
112 return null; | 112 return null; |
113 } | 113 } |
114 | 114 |
115 return fractions.get(index).getData(); | 115 return fractions.get(index).getData(); |