Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/MainValuesWFacet.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 | 4de4b19b6be6 |
children | 27d42c9ee367 |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
30 */ | 30 */ |
31 public class MainValuesWFacet | 31 public class MainValuesWFacet |
32 extends DefaultFacet | 32 extends DefaultFacet |
33 implements FacetTypes { | 33 implements FacetTypes { |
34 | 34 |
35 /** Own logger. */ | 35 /** Own log. */ |
36 private static Logger logger = Logger.getLogger(MainValuesWFacet.class); | 36 private static Logger log = Logger.getLogger(MainValuesWFacet.class); |
37 | 37 |
38 /** Do we want MainValues at Gauge (not interpolated)? */ | 38 /** Do we want MainValues at Gauge (not interpolated)? */ |
39 protected boolean isAtGauge; | 39 protected boolean isAtGauge; |
40 | 40 |
41 /** Trivial Constructor. */ | 41 /** Trivial Constructor. */ |
58 Double day = wqday.interpolateDayByW(w); | 58 Double day = wqday.interpolateDayByW(w); |
59 | 59 |
60 if (day != null) { | 60 if (day != null) { |
61 annotation.setHitPoint(day.floatValue()); | 61 annotation.setHitPoint(day.floatValue()); |
62 } | 62 } |
63 else if (logger.isDebugEnabled()) { | 63 else if (log.isDebugEnabled()) { |
64 logger.debug("StickyAnnotation does not hit wqday curve: " + w); | 64 log.debug("StickyAnnotation does not hit wqday curve: " + w); |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 | 68 |
69 /** | 69 /** |
85 // Find whether a duration curve is on the blackboard. | 85 // Find whether a duration curve is on the blackboard. |
86 WQDay wqdays = null; | 86 WQDay wqdays = null; |
87 List<DataProvider> providers = context. | 87 List<DataProvider> providers = context. |
88 getDataProvider(DurationCurveFacet.BB_DURATIONCURVE); | 88 getDataProvider(DurationCurveFacet.BB_DURATIONCURVE); |
89 if (providers.size() < 1) { | 89 if (providers.size() < 1) { |
90 logger.warn("Could not find durationcurve data provider."); | 90 log.warn("Could not find durationcurve data provider."); |
91 // Do we have a current km in context? | 91 // Do we have a current km in context? |
92 // If so, we are likely fetching data for a navigable | 92 // If so, we are likely fetching data for a navigable |
93 // diagram (i.e. in fixation branch). | 93 // diagram (i.e. in fixation branch). |
94 Object xkm = context.getContextValue(FixChartGenerator.CURRENT_KM); | 94 Object xkm = context.getContextValue(FixChartGenerator.CURRENT_KM); |
95 if (xkm != null) { | 95 if (xkm != null) { |
105 null, | 105 null, |
106 context); | 106 context); |
107 } | 107 } |
108 | 108 |
109 for (NamedDouble w: ws) { | 109 for (NamedDouble w: ws) { |
110 logger.debug("W Annotation at " + w.getValue() + " ("+w.getName()+")"+ wqdays); | 110 log.debug("W Annotation at " + w.getValue() + " ("+w.getName()+")"+ wqdays); |
111 if (Double.isNaN(w.getValue())) { | 111 if (Double.isNaN(w.getValue())) { |
112 logger.warn("NaN MainValue " + w.getName()); | 112 log.warn("NaN MainValue " + w.getName()); |
113 continue; | 113 continue; |
114 } | 114 } |
115 StickyAxisAnnotation annotation = | 115 StickyAxisAnnotation annotation = |
116 new StickyAxisAnnotation( | 116 new StickyAxisAnnotation( |
117 w.getName(), | 117 w.getName(), |