Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixLineExporter.java @ 9249:600e1ac42049
Historical Result
author | gernotbelger |
---|---|
date | Thu, 12 Jul 2018 14:15:36 +0200 |
parents | da0bdbcd6f09 |
children | c36befc9011c |
comparison
equal
deleted
inserted
replaced
9248:9e6b70cce337 | 9249:600e1ac42049 |
---|---|
10 package org.dive4elements.river.artifacts.uinfo.salix; | 10 package org.dive4elements.river.artifacts.uinfo.salix; |
11 | 11 |
12 import org.dive4elements.river.artifacts.common.AbstractCommonExporter; | 12 import org.dive4elements.river.artifacts.common.AbstractCommonExporter; |
13 import org.dive4elements.river.artifacts.common.ExportContextCSV; | 13 import org.dive4elements.river.artifacts.common.ExportContextCSV; |
14 import org.dive4elements.river.artifacts.common.ExportContextPDF; | 14 import org.dive4elements.river.artifacts.common.ExportContextPDF; |
15 import org.dive4elements.river.artifacts.common.I18NStrings; | |
16 import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; | 15 import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; |
17 | 16 |
18 /** | 17 /** |
19 * @author Domenico Nardi Tironi | 18 * @author Domenico Nardi Tironi |
20 * | 19 * |
22 public class SalixLineExporter extends AbstractCommonExporter<SalixLineCalculationNoScenarioResult, SalixLineCalculationResults> { | 21 public class SalixLineExporter extends AbstractCommonExporter<SalixLineCalculationNoScenarioResult, SalixLineCalculationResults> { |
23 | 22 |
24 @Override | 23 @Override |
25 protected void writeCSVGlobalMetadata(final ExportContextCSV exportContextCSV, final SalixLineCalculationResults results) { | 24 protected void writeCSVGlobalMetadata(final ExportContextCSV exportContextCSV, final SalixLineCalculationResults results) { |
26 /* write as csv */ | 25 /* write as csv */ |
27 exportContextCSV.writeCSVGlobalMetadataDefaults(); // ggf auslagern innerhalb dieser Klasse | 26 exportContextCSV.writeCSVGlobalMetadataDefaults(); |
28 | |
29 // break line ? | |
30 | |
31 // "# Höhensystem des Flusses: " | |
32 exportContextCSV.writeCSVMetaEntry(I18NStrings.CSV_META_HEIGHT_UNIT_RIVER, results.getRiver().getWstUnit()); | |
33 | 27 |
34 // Add Auswerter, Bezugspegel, Jahr/Zeitraum der Wasserspiegellage | 28 // Add Auswerter, Bezugspegel, Jahr/Zeitraum der Wasserspiegellage |
35 | 29 |
36 // "# Auswerter: " | 30 // "# Auswerter: " |
37 exportContextCSV.writeCSVMetaEntry("uinfo.export.salix_line.csv.meta.header.evaluator", "sounding.getEvaluationBy()"); | 31 exportContextCSV.writeCSVMetaEntry("uinfo.export.salix_line.csv.meta.header.evaluator", "sounding.getEvaluationBy()"); |
38 // "# Bezugspegel: " | 32 // "# Bezugspegel: " |
39 exportContextCSV.writeCSVMetaEntry("uinfo.export.salix_line.csv.meta.header.waterlevel.gauge", "wst.getGauge()"); | 33 exportContextCSV.writeCSVMetaEntry("uinfo.export.salix_line.csv.meta.header.waterlevel.gauge", "wst.getGauge()"); |
40 | 34 |
41 // "# Jahr/Zeitraum der Wasserspiegellage: " | 35 // "# Jahr/Zeitraum der Wasserspiegellage: " |
42 // final int year = wst.getYear(); | 36 exportContextCSV.writeCSVMetaEntry("uinfo.export.salix_line.csv.meta.header.waterlevel.year", "TODO..."); |
43 // if (year > 0) | |
44 exportContextCSV.writeCSVMetaEntry("uinfo.export.salix_line.csv.meta.header.waterlevel.year", "Integer.toString(year)"); | |
45 | 37 |
46 } | 38 } |
47 | 39 |
48 @Override | 40 @Override |
49 protected void writePDFGlobalMetadata(final ExportContextPDF exportContext, final MetaAndTableJRDataSource source) { | 41 protected void writePDFGlobalMetadata(final ExportContextPDF exportContext, final MetaAndTableJRDataSource source) { |