comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixLongitudinalAvSectorFacet.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 af13ceeba52a
children 0a5239a1e46e
comparison
equal deleted inserted replaced
8201:4b8c5a08de04 8202:e4606eae8ea5
21 21
22 public class FixLongitudinalAvSectorFacet 22 public class FixLongitudinalAvSectorFacet
23 extends DataFacet 23 extends DataFacet
24 implements FacetTypes { 24 implements FacetTypes {
25 25
26 /** House logger. */ 26 /** House log. */
27 private static Logger logger = 27 private static Logger log =
28 Logger.getLogger(FixLongitudinalAvSectorFacet.class); 28 Logger.getLogger(FixLongitudinalAvSectorFacet.class);
29 29
30 /** Trivial Constructor. */ 30 /** Trivial Constructor. */
31 public FixLongitudinalAvSectorFacet() { 31 public FixLongitudinalAvSectorFacet() {
32 } 32 }
55 * 55 *
56 * @return the data as KMIndex. 56 * @return the data as KMIndex.
57 */ 57 */
58 @Override 58 @Override
59 public Object getData(Artifact artifact, CallContext context) { 59 public Object getData(Artifact artifact, CallContext context) {
60 logger.debug("FixLongitudinalAvSectorFacet.getData"); 60 log.debug("FixLongitudinalAvSectorFacet.getData");
61 61
62 if (artifact instanceof D4EArtifact) { 62 if (artifact instanceof D4EArtifact) {
63 D4EArtifact flys = (D4EArtifact)artifact; 63 D4EArtifact flys = (D4EArtifact)artifact;
64 64
65 CalculationResult res = 65 CalculationResult res =
69 69
70 FixAnalysisResult result = (FixAnalysisResult) res.getData(); 70 FixAnalysisResult result = (FixAnalysisResult) res.getData();
71 71
72 KMIndex<AnalysisPeriod []> kmPeriods = result.getAnalysisPeriods(); 72 KMIndex<AnalysisPeriod []> kmPeriods = result.getAnalysisPeriods();
73 if (kmPeriods == null) { 73 if (kmPeriods == null) {
74 logger.warn("No analysis periods found."); 74 log.warn("No analysis periods found.");
75 return null; 75 return null;
76 } 76 }
77 int periodNdx = index >> 2; 77 int periodNdx = index >> 2;
78 KMIndex<AnalysisPeriod> resPeriods = 78 KMIndex<AnalysisPeriod> resPeriods =
79 new KMIndex<AnalysisPeriod>(); 79 new KMIndex<AnalysisPeriod>();
83 } 83 }
84 84
85 return resPeriods; 85 return resPeriods;
86 } 86 }
87 else { 87 else {
88 logger.warn("Artifact is no instance of D4EArtifact."); 88 log.warn("Artifact is no instance of D4EArtifact.");
89 return null; 89 return null;
90 } 90 }
91 } 91 }
92 92
93 93

http://dive4elements.wald.intevation.org