comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/MainValuesQFacet.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
33 */ 33 */
34 public class MainValuesQFacet 34 public class MainValuesQFacet
35 extends DefaultFacet 35 extends DefaultFacet
36 implements FacetTypes { 36 implements FacetTypes {
37 37
38 /** Own logger. */ 38 /** Own log. */
39 private static Logger logger = Logger.getLogger(MainValuesQFacet.class); 39 private static Logger log = Logger.getLogger(MainValuesQFacet.class);
40 40
41 /** Do we want MainValues at Gauge (not interpolated)? */ 41 /** Do we want MainValues at Gauge (not interpolated)? */
42 protected boolean isAtGauge; 42 protected boolean isAtGauge;
43 43
44 44
61 Double day = wqday.interpolateDayByQ(q); 61 Double day = wqday.interpolateDayByQ(q);
62 62
63 if (day != null) { 63 if (day != null) {
64 annotation.setHitPoint(day.floatValue()); 64 annotation.setHitPoint(day.floatValue());
65 } 65 }
66 else if (logger.isDebugEnabled()) { 66 else if (log.isDebugEnabled()) {
67 logger.debug("StickyAnnotation does not hit wqday curve: " + q); 67 log.debug("StickyAnnotation does not hit wqday curve: " + q);
68 } 68 }
69 } 69 }
70 70
71 71
72 /** 72 /**
87 87
88 WQDay wqdays = null; 88 WQDay wqdays = null;
89 List<DataProvider> providers = context. 89 List<DataProvider> providers = context.
90 getDataProvider(DurationCurveFacet.BB_DURATIONCURVE); 90 getDataProvider(DurationCurveFacet.BB_DURATIONCURVE);
91 if (providers.size() < 1) { 91 if (providers.size() < 1) {
92 logger.warn("Could not find durationcurve data provider."); 92 log.warn("Could not find durationcurve data provider.");
93 // Do we have a current km in context? 93 // Do we have a current km in context?
94 // If so, we are likely fetching data for a navigable 94 // If so, we are likely fetching data for a navigable
95 // diagram (i.e. in fixation branch). 95 // diagram (i.e. in fixation branch).
96 Object xkm = context.getContextValue(FixChartGenerator.CURRENT_KM); 96 Object xkm = context.getContextValue(FixChartGenerator.CURRENT_KM);
97 if (xkm != null) { 97 if (xkm != null) {
111 // Rather specific case, Q-Annotations at a maybe second yaxis. 111 // Rather specific case, Q-Annotations at a maybe second yaxis.
112 StickyAxisAnnotation annotation = null; 112 StickyAxisAnnotation annotation = null;
113 if (this.name.equals(DURATION_MAINVALUES_Q)) { 113 if (this.name.equals(DURATION_MAINVALUES_Q)) {
114 for (NamedDouble q: qs) { 114 for (NamedDouble q: qs) {
115 if (Double.isNaN(q.getValue())) { 115 if (Double.isNaN(q.getValue())) {
116 logger.warn("NaN MainValue " + q.getName()); 116 log.warn("NaN MainValue " + q.getName());
117 continue; 117 continue;
118 } 118 }
119 annotation = 119 annotation =
120 new StickyAxisAnnotation( 120 new StickyAxisAnnotation(
121 q.getName(), 121 q.getName(),
129 } 129 }
130 } 130 }
131 else { 131 else {
132 for (NamedDouble q: qs) { 132 for (NamedDouble q: qs) {
133 if (Double.isNaN(q.getValue())) { 133 if (Double.isNaN(q.getValue())) {
134 logger.warn("NaN MainValue " + q.getName()); 134 log.warn("NaN MainValue " + q.getName());
135 continue; 135 continue;
136 } 136 }
137 annotation = 137 annotation =
138 new StickyAxisAnnotation( 138 new StickyAxisAnnotation(
139 q.getName(), 139 q.getName(),

http://dive4elements.wald.intevation.org