Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/collision/CollisionExporter.java @ 9157:f9bb5d0a6ff3
Added the S-Info collision calculation and chart output
author | mschaefer |
---|---|
date | Tue, 19 Jun 2018 14:19:32 +0200 |
parents | 23945061daec |
children | a4121ec450d6 |
comparison
equal
deleted
inserted
replaced
9156:568961ff709a | 9157:f9bb5d0a6ff3 |
---|---|
14 import org.dive4elements.river.artifacts.common.AbstractCalculationExportableResult; | 14 import org.dive4elements.river.artifacts.common.AbstractCalculationExportableResult; |
15 import org.dive4elements.river.artifacts.common.AbstractCommonExporter; | 15 import org.dive4elements.river.artifacts.common.AbstractCommonExporter; |
16 import org.dive4elements.river.artifacts.common.ExportContextCSV; | 16 import org.dive4elements.river.artifacts.common.ExportContextCSV; |
17 import org.dive4elements.river.artifacts.common.JasperReporter; | 17 import org.dive4elements.river.artifacts.common.JasperReporter; |
18 import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; | 18 import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; |
19 import org.dive4elements.river.artifacts.sinfo.common.SInfoI18NStrings; | |
19 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; | 20 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; |
20 | 21 |
21 import au.com.bytecode.opencsv.CSVWriter; | 22 import au.com.bytecode.opencsv.CSVWriter; |
22 import net.sf.jasperreports.engine.JRException; | 23 import net.sf.jasperreports.engine.JRException; |
23 | 24 |
36 getLog().info("writeCSVData"); | 37 getLog().info("writeCSVData"); |
37 | 38 |
38 /* write as csv */ | 39 /* write as csv */ |
39 exportContextCSV.writeCSVGlobalMetadataDefaults(results); // ggf auslagern innerhalb dieser Klasse | 40 exportContextCSV.writeCSVGlobalMetadataDefaults(results); // ggf auslagern innerhalb dieser Klasse |
40 | 41 |
42 exportContextCSV.writeCSVMetaEntry(SInfoI18NStrings.CSV_META_HEADER_YEARS, results.getYearsHeader()); | |
41 // writer.writeNext(new String[] { "" }); // break line HERE to avoid redundance | 43 // writer.writeNext(new String[] { "" }); // break line HERE to avoid redundance |
42 | 44 |
43 final RiverInfo river = results.getRiver(); | 45 final RiverInfo river = results.getRiver(); |
44 | 46 |
45 final Class<?> lastResultType = null; | 47 final Class<?> lastResultType = null; |