comparison artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixATExport.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 4897a58c8746
children af13ceeba52a
comparison
equal deleted inserted replaced
5866:9a6741ccf6d4 5867:59ff03ff48f1
10 10
11 import au.com.bytecode.opencsv.CSVWriter; 11 import au.com.bytecode.opencsv.CSVWriter;
12 12
13 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; 13 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet;
14 14
15 import org.dive4elements.river.artifacts.FLYSArtifact; 15 import org.dive4elements.river.artifacts.D4EArtifact;
16 16
17 import org.dive4elements.river.artifacts.access.FixAccess; 17 import org.dive4elements.river.artifacts.access.FixAccess;
18 18
19 import org.dive4elements.river.artifacts.math.fitting.Function; 19 import org.dive4elements.river.artifacts.math.fitting.Function;
20 import org.dive4elements.river.artifacts.math.fitting.FunctionFactory; 20 import org.dive4elements.river.artifacts.math.fitting.FunctionFactory;
60 } 60 }
61 else { 61 else {
62 logger.debug("No CalculationResult found for AT export."); 62 logger.debug("No CalculationResult found for AT export.");
63 return; 63 return;
64 } 64 }
65 FixAccess access = new FixAccess((FLYSArtifact)this.master, context); 65 FixAccess access = new FixAccess((D4EArtifact)this.master, context);
66 String f = access.getFunction(); 66 String f = access.getFunction();
67 if (f == null || f.length() == 0) { 67 if (f == null || f.length() == 0) {
68 logger.debug("No function found for AT export."); 68 logger.debug("No function found for AT export.");
69 return; 69 return;
70 } 70 }
78 return; 78 return;
79 } 79 }
80 80
81 Writer writer = new OutputStreamWriter(out, DEFAULT_CSV_CHARSET); 81 Writer writer = new OutputStreamWriter(out, DEFAULT_CSV_CHARSET);
82 82
83 FixAccess access = new FixAccess((FLYSArtifact)this.master, context); 83 FixAccess access = new FixAccess((D4EArtifact)this.master, context);
84 FixATWriter atWriter = new FixATWriter(this.function, this.parameters); 84 FixATWriter atWriter = new FixATWriter(this.function, this.parameters);
85 NodeList nodes = request.getElementsByTagName("km"); 85 NodeList nodes = request.getElementsByTagName("km");
86 String km = nodes.item(0).getTextContent(); 86 String km = nodes.item(0).getTextContent();
87 double dkm = Double.parseDouble(km); 87 double dkm = Double.parseDouble(km);
88 String river = access.getRiver(); 88 String river = access.getRiver();

http://dive4elements.wald.intevation.org