Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/FlowVelocityExporter.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 | 73da40528cf2 |
children | af13ceeba52a |
comparison
equal
deleted
inserted
replaced
5866:9a6741ccf6d4 | 5867:59ff03ff48f1 |
---|---|
19 | 19 |
20 import au.com.bytecode.opencsv.CSVWriter; | 20 import au.com.bytecode.opencsv.CSVWriter; |
21 | 21 |
22 import org.dive4elements.artifacts.CallContext; | 22 import org.dive4elements.artifacts.CallContext; |
23 | 23 |
24 import org.dive4elements.river.artifacts.FLYSArtifact; | 24 import org.dive4elements.river.artifacts.D4EArtifact; |
25 import org.dive4elements.river.artifacts.model.CalculationResult; | 25 import org.dive4elements.river.artifacts.model.CalculationResult; |
26 import org.dive4elements.river.artifacts.model.FlowVelocityData; | 26 import org.dive4elements.river.artifacts.model.FlowVelocityData; |
27 import org.dive4elements.river.utils.RiverUtils; | 27 import org.dive4elements.river.utils.RiverUtils; |
28 import org.dive4elements.river.utils.Formatter; | 28 import org.dive4elements.river.utils.Formatter; |
29 | 29 |
104 | 104 |
105 | 105 |
106 protected void data2CSV(CSVWriter writer, FlowVelocityData[] fData) { | 106 protected void data2CSV(CSVWriter writer, FlowVelocityData[] fData) { |
107 logger.debug("Add next FlowVelocityData to CSV"); | 107 logger.debug("Add next FlowVelocityData to CSV"); |
108 | 108 |
109 FLYSArtifact flys = (FLYSArtifact) master; | 109 D4EArtifact flys = (D4EArtifact) master; |
110 | 110 |
111 for (FlowVelocityData data: fData) { | 111 for (FlowVelocityData data: fData) { |
112 for (int i = 0, n = data.size(); i < n; i++) { | 112 for (int i = 0, n = data.size(); i < n; i++) { |
113 NumberFormat kmF = Formatter.getFlowVelocityKM(context); | 113 NumberFormat kmF = Formatter.getFlowVelocityKM(context); |
114 NumberFormat valF = Formatter.getFlowVelocityValues(context); | 114 NumberFormat valF = Formatter.getFlowVelocityValues(context); |