Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/GaugeDischargeState.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 | 4937dab5ff7a |
children | e52a7daabe0f |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
46 implements FacetTypes | 46 implements FacetTypes |
47 { | 47 { |
48 /** Developer-centric description of facet. */ | 48 /** Developer-centric description of facet. */ |
49 public static final String I18N_DESCRIPTION = "facet.discharge.curve"; | 49 public static final String I18N_DESCRIPTION = "facet.discharge.curve"; |
50 | 50 |
51 /** The logger that is used in this state. */ | 51 /** The log that is used in this state. */ |
52 private static final Logger logger = | 52 private static final Logger log = |
53 Logger.getLogger(GaugeDischargeState.class); | 53 Logger.getLogger(GaugeDischargeState.class); |
54 | 54 |
55 | 55 |
56 /** | 56 /** |
57 * Create i18ned name for gaugedischargeFacet. | 57 * Create i18ned name for gaugedischargeFacet. |
110 String hash, | 110 String hash, |
111 Object context, | 111 Object context, |
112 CallMeta meta, | 112 CallMeta meta, |
113 List<Facet> facets | 113 List<Facet> facets |
114 ) { | 114 ) { |
115 logger.debug("GaugeDischargeState.computeInit()"); | 115 log.debug("GaugeDischargeState.computeInit()"); |
116 | 116 |
117 GaugeDischargeFacet facet = new GaugeDischargeFacet( | 117 GaugeDischargeFacet facet = new GaugeDischargeFacet( |
118 0, | 118 0, |
119 DISCHARGE_CURVE, | 119 DISCHARGE_CURVE, |
120 createFacetName((GaugeDischargeArtifact) artifact, meta)); | 120 createFacetName((GaugeDischargeArtifact) artifact, meta)); |
135 CallContext context, | 135 CallContext context, |
136 List<Facet> facets, | 136 List<Facet> facets, |
137 Object old | 137 Object old |
138 ) { | 138 ) { |
139 if (artifact instanceof GaugeDischargeArtifact) { | 139 if (artifact instanceof GaugeDischargeArtifact) { |
140 logger.debug("GaugeDischargeState.computeAdvance()"); | 140 log.debug("GaugeDischargeState.computeAdvance()"); |
141 GaugeDischargeArtifact dischargeArtifact = (GaugeDischargeArtifact) artifact; | 141 GaugeDischargeArtifact dischargeArtifact = (GaugeDischargeArtifact) artifact; |
142 | 142 |
143 CalculationResult res; | 143 CalculationResult res; |
144 | 144 |
145 | 145 |
151 } | 151 } |
152 | 152 |
153 WQKms[] wqkms = (WQKms[]) res.getData(); | 153 WQKms[] wqkms = (WQKms[]) res.getData(); |
154 | 154 |
155 if (wqkms != null && facets != null) { | 155 if (wqkms != null && facets != null) { |
156 logger.debug("GaugeDischargeState.computeAdvance(): create facets"); | 156 log.debug("GaugeDischargeState.computeAdvance(): create facets"); |
157 | 157 |
158 GaugeDischargeFacet facet = new GaugeDischargeFacet( | 158 GaugeDischargeFacet facet = new GaugeDischargeFacet( |
159 0, | 159 0, |
160 DISCHARGE_CURVE, | 160 DISCHARGE_CURVE, |
161 createFacetName(dischargeArtifact, context.getMeta())); | 161 createFacetName(dischargeArtifact, context.getMeta())); |
169 facets.add(new ReportFacet()); | 169 facets.add(new ReportFacet()); |
170 } | 170 } |
171 } | 171 } |
172 else { | 172 else { |
173 if (wqkms == null) | 173 if (wqkms == null) |
174 logger.debug("GaugeDischargeState.computeAdvance(): wqkms 0"); | 174 log.debug("GaugeDischargeState.computeAdvance(): wqkms 0"); |
175 else | 175 else |
176 logger.debug("GaugeDischargeState.computeAdvance(): facets 0"); | 176 log.debug("GaugeDischargeState.computeAdvance(): facets 0"); |
177 } | 177 } |
178 | 178 |
179 return res; | 179 return res; |
180 } | 180 } |
181 else if (artifact instanceof ChartArtifact) { | 181 else if (artifact instanceof ChartArtifact) { |