Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java @ 364:8830eecad69e
Added the name of the facet to the parameterlist of OutGenerator.doOut().
flys-artifacts/trunk@1772 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 29 Apr 2011 08:13:56 +0000 |
parents | e5ea6a01526c |
children | 2ce7b473620e |
comparison
equal
deleted
inserted
replaced
363:8422ffc1f2f9 | 364:8830eecad69e |
---|---|
2 | 2 |
3 import java.io.IOException; | 3 import java.io.IOException; |
4 | 4 |
5 import org.apache.log4j.Logger; | 5 import org.apache.log4j.Logger; |
6 | 6 |
7 import org.jfree.data.xy.DefaultXYDataset; | |
8 | |
7 import org.w3c.dom.Document; | 9 import org.w3c.dom.Document; |
8 | 10 |
9 import de.intevation.artifacts.Artifact; | 11 import de.intevation.artifacts.Artifact; |
12 | |
13 import de.intevation.flys.artifacts.WINFOArtifact; | |
14 import de.intevation.flys.artifacts.model.WQKms; | |
10 | 15 |
11 | 16 |
12 /** | 17 /** |
13 * An OutGenerator that generates discharge curves. | 18 * An OutGenerator that generates discharge curves. |
14 * | 19 * |
19 /** The logger that is used in this generator.*/ | 24 /** The logger that is used in this generator.*/ |
20 private static Logger logger = | 25 private static Logger logger = |
21 Logger.getLogger(LongitudinalSectionGenerator.class); | 26 Logger.getLogger(LongitudinalSectionGenerator.class); |
22 | 27 |
23 | 28 |
29 protected DefaultXYDataset dataset; | |
30 | |
31 | |
24 public LongitudinalSectionGenerator() { | 32 public LongitudinalSectionGenerator() { |
25 super(); | 33 super(); |
34 | |
35 this.dataset = new DefaultXYDataset(); | |
26 } | 36 } |
27 | 37 |
28 | 38 |
29 public void doOut(Artifact artifact, Document attr) { | 39 public void doOut(Artifact artifact, String facet, Document attr) { |
30 logger.debug("LongitudinalSectionGenerator.doOut"); | 40 logger.debug("LongitudinalSectionGenerator.doOut: " + facet); |
31 | 41 |
32 // TODO Implement me | 42 WINFOArtifact winfoArtifact = (WINFOArtifact) artifact; |
43 WQKms[] wqkms = winfoArtifact.getWaterlevelData(); | |
44 | |
45 logger.debug("Got " + wqkms.length + " WQKms objects."); | |
33 } | 46 } |
34 | 47 |
35 | 48 |
36 public void generate() | 49 public void generate() |
37 throws IOException | 50 throws IOException |