comparison artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixDeltaWtGenerator.java @ 5867:59ff03ff48f1

River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author Sascha L. Teichmann <teichmann@intevation.de>
date Sun, 28 Apr 2013 15:23:01 +0200
parents f2e46a668fe6
children af13ceeba52a
comparison
equal deleted inserted replaced
5866:9a6741ccf6d4 5867:59ff03ff48f1
8 8
9 package org.dive4elements.river.exports.fixings; 9 package org.dive4elements.river.exports.fixings;
10 10
11 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; 11 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet;
12 import org.dive4elements.artifacts.CallContext; 12 import org.dive4elements.artifacts.CallContext;
13 import org.dive4elements.river.artifacts.FLYSArtifact; 13 import org.dive4elements.river.artifacts.D4EArtifact;
14 import org.dive4elements.river.artifacts.access.FixAnalysisAccess; 14 import org.dive4elements.river.artifacts.access.FixAnalysisAccess;
15 import org.dive4elements.river.artifacts.model.DateRange; 15 import org.dive4elements.river.artifacts.model.DateRange;
16 import org.dive4elements.river.artifacts.model.FacetTypes; 16 import org.dive4elements.river.artifacts.model.FacetTypes;
17 import org.dive4elements.river.artifacts.model.QWDDateRange; 17 import org.dive4elements.river.artifacts.model.QWDDateRange;
18 import org.dive4elements.river.artifacts.model.fixings.QWD; 18 import org.dive4elements.river.artifacts.model.fixings.QWD;
77 idx = c; 77 idx = c;
78 } 78 }
79 } 79 }
80 80
81 81
82 private FLYSArtifact artifact = null; 82 private D4EArtifact artifact = null;
83 83
84 84
85 @Override 85 @Override
86 protected YAxisWalker getYAxisWalker() { 86 protected YAxisWalker getYAxisWalker() {
87 return new YAxisWalker() { 87 return new YAxisWalker() {
160 ) { 160 ) {
161 String name = artifactFacet.getFacetName(); 161 String name = artifactFacet.getFacetName();
162 logger.debug("FixDeltaWtGenerator.doOut: " + name); 162 logger.debug("FixDeltaWtGenerator.doOut: " + name);
163 logger.debug("Theme description is: " + artifactFacet.getFacetDescription()); 163 logger.debug("Theme description is: " + artifactFacet.getFacetDescription());
164 164
165 this.artifact = (FLYSArtifact)artifactFacet.getArtifact(); 165 this.artifact = (D4EArtifact)artifactFacet.getArtifact();
166 166
167 if (name.contains(FIX_SECTOR_AVERAGE_DWT)) { 167 if (name.contains(FIX_SECTOR_AVERAGE_DWT)) {
168 doSectorAverageOut( 168 doSectorAverageOut(
169 (FLYSArtifact) artifactFacet.getArtifact(), 169 (D4EArtifact) artifactFacet.getArtifact(),
170 artifactFacet.getData(context), 170 artifactFacet.getData(context),
171 artifactFacet.getFacetDescription(), 171 artifactFacet.getFacetDescription(),
172 theme, 172 theme,
173 visible); 173 visible);
174 } 174 }
175 else if (name.equals(FIX_REFERENCE_EVENTS_DWT)) { 175 else if (name.equals(FIX_REFERENCE_EVENTS_DWT)) {
176 doReferenceEventsOut( 176 doReferenceEventsOut(
177 (FLYSArtifact) artifactFacet.getArtifact(), 177 (D4EArtifact) artifactFacet.getArtifact(),
178 artifactFacet.getData(context), 178 artifactFacet.getData(context),
179 artifactFacet.getFacetDescription(), 179 artifactFacet.getFacetDescription(),
180 theme, 180 theme,
181 visible); 181 visible);
182 } 182 }
183 else if (name.equals(FIX_ANALYSIS_EVENTS_DWT)) { 183 else if (name.equals(FIX_ANALYSIS_EVENTS_DWT)) {
184 doAnalysisEventsOut( 184 doAnalysisEventsOut(
185 (FLYSArtifact) artifactFacet.getArtifact(), 185 (D4EArtifact) artifactFacet.getArtifact(),
186 artifactFacet.getData(context), 186 artifactFacet.getData(context),
187 artifactFacet.getFacetDescription(), 187 artifactFacet.getFacetDescription(),
188 theme, 188 theme,
189 visible); 189 visible);
190 } 190 }
191 else if (name.equals(FIX_DEVIATION_DWT)) { 191 else if (name.equals(FIX_DEVIATION_DWT)) {
192 doDeviationOut( 192 doDeviationOut(
193 (FLYSArtifact) artifactFacet.getArtifact(), 193 (D4EArtifact) artifactFacet.getArtifact(),
194 artifactFacet.getData(context), 194 artifactFacet.getData(context),
195 artifactFacet.getFacetDescription(), 195 artifactFacet.getFacetDescription(),
196 theme, 196 theme,
197 visible); 197 visible);
198 } 198 }
199 else if (name.equals(FIX_ANALYSIS_PERIODS_DWT)) { 199 else if (name.equals(FIX_ANALYSIS_PERIODS_DWT)) {
200 doAnalysisPeriodsOut( 200 doAnalysisPeriodsOut(
201 (FLYSArtifact) artifactFacet.getArtifact(), 201 (D4EArtifact) artifactFacet.getArtifact(),
202 artifactFacet.getData(context), 202 artifactFacet.getData(context),
203 artifactFacet.getFacetDescription(), 203 artifactFacet.getFacetDescription(),
204 theme, 204 theme,
205 visible); 205 visible);
206 } 206 }
207 else if (name.equals(FIX_REFERENCE_PERIOD_DWT)) { 207 else if (name.equals(FIX_REFERENCE_PERIOD_DWT)) {
208 doReferencePeriodsOut( 208 doReferencePeriodsOut(
209 (FLYSArtifact) artifactFacet.getArtifact(), 209 (D4EArtifact) artifactFacet.getArtifact(),
210 artifactFacet.getData(context), 210 artifactFacet.getData(context),
211 artifactFacet.getFacetDescription(), 211 artifactFacet.getFacetDescription(),
212 theme, 212 theme,
213 visible); 213 visible);
214 } 214 }
223 } 223 }
224 } 224 }
225 225
226 226
227 protected void doReferencePeriodsOut( 227 protected void doReferencePeriodsOut(
228 FLYSArtifact artifact, 228 D4EArtifact artifact,
229 Object data, 229 Object data,
230 String desc, 230 String desc,
231 Document theme, 231 Document theme,
232 boolean visible) 232 boolean visible)
233 { 233 {
247 } 247 }
248 } 248 }
249 249
250 250
251 protected void doSectorAverageOut( 251 protected void doSectorAverageOut(
252 FLYSArtifact artifact, 252 D4EArtifact artifact,
253 Object data, 253 Object data,
254 String desc, 254 String desc,
255 Document theme, 255 Document theme,
256 boolean visible) 256 boolean visible)
257 { 257 {
292 } 292 }
293 } 293 }
294 294
295 295
296 protected void doAnalysisEventsOut( 296 protected void doAnalysisEventsOut(
297 FLYSArtifact artifact, 297 D4EArtifact artifact,
298 Object data, 298 Object data,
299 String desc, 299 String desc,
300 Document theme, 300 Document theme,
301 boolean visible 301 boolean visible
302 ) { 302 ) {
387 addAnnotations(flysAnno); 387 addAnnotations(flysAnno);
388 } 388 }
389 389
390 390
391 protected void doReferenceEventsOut( 391 protected void doReferenceEventsOut(
392 FLYSArtifact artifact, 392 D4EArtifact artifact,
393 Object data, 393 Object data,
394 String desc, 394 String desc,
395 Document theme, 395 Document theme,
396 boolean visible 396 boolean visible
397 ) { 397 ) {
401 doQWDEventsOut(qwd, desc, theme, visible); 401 doQWDEventsOut(qwd, desc, theme, visible);
402 } 402 }
403 403
404 404
405 protected void doDeviationOut( 405 protected void doDeviationOut(
406 FLYSArtifact artifact, 406 D4EArtifact artifact,
407 Object data, 407 Object data,
408 String desc, 408 String desc,
409 Document theme, 409 Document theme,
410 boolean visible 410 boolean visible
411 ) { 411 ) {
423 valueMarker.add(upper); 423 valueMarker.add(upper);
424 } 424 }
425 425
426 426
427 protected void doAnalysisPeriodsOut( 427 protected void doAnalysisPeriodsOut(
428 FLYSArtifact artifact, 428 D4EArtifact artifact,
429 Object data, 429 Object data,
430 String desc, 430 String desc,
431 Document theme, 431 Document theme,
432 boolean visible) 432 boolean visible)
433 { 433 {

http://dive4elements.wald.intevation.org