Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstMainCalculationResult.java @ 9708:93389a05119e
zu Nachtrag - BezugsWST in intell. Datenkorb
author | dnt_bjoernsen <d.tironi@bjoernsen.de> |
---|---|
date | Fri, 22 Jan 2021 18:45:39 +0100 |
parents | 7228bd10a8cc |
children |
comparison
equal
deleted
inserted
replaced
9707:23702537fb4f | 9708:93389a05119e |
---|---|
31 /** | 31 /** |
32 * Contains the results of a //TODO LINK{@link BezugswstCalculation}. | 32 * Contains the results of a //TODO LINK{@link BezugswstCalculation}. |
33 * | 33 * |
34 * @author Gernot Belger | 34 * @author Gernot Belger |
35 */ | 35 */ |
36 final class BezugswstMainCalculationResult extends AbstractCalculationExportableResult { | 36 public final class BezugswstMainCalculationResult extends AbstractCalculationExportableResult { |
37 | 37 |
38 private static final long serialVersionUID = 1L; | 38 private static final long serialVersionUID = 1L; |
39 | 39 |
40 private static final String JASPER_FILE = "/jasper/templates/bundu.bezugswst.jrxml"; | 40 private static final String JASPER_FILE = "/jasper/templates/bundu.bezugswst.jrxml"; |
41 | 41 |
73 return this.wqkms; | 73 return this.wqkms; |
74 } | 74 } |
75 | 75 |
76 public String getWstLabel() { | 76 public String getWstLabel() { |
77 if (this.ud != null) | 77 if (this.ud != null) |
78 return Integer.toString(this.endYear) + "; UD=" + Integer.toString(this.ud); // FIXME per WaterlevelDescriptionBuilder o.ä. zentralisieren | 78 return Integer.toString(this.getEndYear()) + "; UD=" + Integer.toString(this.ud); // FIXME per WaterlevelDescriptionBuilder o.ä. zentralisieren |
79 return Integer.toString(this.endYear) + "; " + this.wst.getLabel(); | 79 return Integer.toString(this.getEndYear()) + "; " + this.wst.getLabel(); |
80 } | 80 } |
81 | 81 |
82 public String getBedHeightLabel() { | 82 public String getBedHeightLabel() { |
83 if (this.sounding != null) | 83 if (this.sounding != null) |
84 return this.sounding.getDescription(); | 84 return this.sounding.getDescription(); |
98 exportContextCSV.writeCSVSoundingMetadata(this.sounding, "common.export.csv.meta.header.sounding"); | 98 exportContextCSV.writeCSVSoundingMetadata(this.sounding, "common.export.csv.meta.header.sounding"); |
99 | 99 |
100 // Reihenfolge in der LV anders; ich finde sie aber so sinnvoller | 100 // Reihenfolge in der LV anders; ich finde sie aber so sinnvoller |
101 exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.function", this.function); | 101 exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.function", this.function); |
102 exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.preprocessing", exportContextCSV.msg(String.valueOf(this.preprocessing))); | 102 exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.preprocessing", exportContextCSV.msg(String.valueOf(this.preprocessing))); |
103 exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.q_period", String.valueOf(this.startYear), String.valueOf(this.endYear)); | 103 exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.q_period", String.valueOf(this.startYear), String.valueOf(this.getEndYear())); |
104 if (this.ud != null) | 104 if (this.ud != null) |
105 exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.ud", this.ud); | 105 exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.ud", this.ud); |
106 else if (this.qOfGauges != null) | 106 else if (this.qOfGauges != null) |
107 exportContextCSV.writeCSVMetaEntry("common.export.waterlevel.csv.meta.q", this.qOfGauges); | 107 exportContextCSV.writeCSVMetaEntry("common.export.waterlevel.csv.meta.q", this.qOfGauges); |
108 | 108 |
194 y.add(fieldHeights.get(fieldIndex - 1)); | 194 y.add(fieldHeights.get(fieldIndex - 1)); |
195 } | 195 } |
196 | 196 |
197 return new double[][] { x.toNativeArray(), y.toNativeArray() }; | 197 return new double[][] { x.toNativeArray(), y.toNativeArray() }; |
198 } | 198 } |
199 | |
200 public int getEndYear() { | |
201 return endYear; | |
202 } | |
199 } | 203 } |