# HG changeset patch # User Ingo Weinzierl # Date 1343294807 0 # Node ID 13855a555d3b2e526226956c4dc9ee3ea9d4df98 # Parent 1481322efc02c6be9e17c2e8a706249f774f6581 Added new Output WaterlevelExport (CSV, WST and PDF) to FixRealizingCompute State. flys-artifacts/trunk@5130 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 1481322efc02 -r 13855a555d3b flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Wed Jul 25 15:07:14 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu Jul 26 09:26:47 2012 +0000 @@ -1,3 +1,17 @@ +2012-07-26 Ingo Weinzierl + + * doc/conf/artifacts/fixanalysis.xml: Registered new Output + 'fix_waterlevel_export' for FixRealizingCompute State. + + * doc/conf/conf.xml: Registered new WaterlevelExport Generator for + 'fix_waterlevel_export'. + + * src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java: + Create proper CSV, WST and PDF Facets with hash and State id. + + * src/main/java/de/intevation/flys/exports/WaterlevelExporter.java: Made + WaterlevelExporter support FixRealizingResult objects. + 2012-07-25 Sascha L. Teichmann * src/main/java/de/intevation/flys/artifacts/model/fixings/FixWaterlevelFacet.java: diff -r 1481322efc02 -r 13855a555d3b flys-artifacts/doc/conf/artifacts/fixanalysis.xml --- a/flys-artifacts/doc/conf/artifacts/fixanalysis.xml Wed Jul 25 15:07:14 2012 +0000 +++ b/flys-artifacts/doc/conf/artifacts/fixanalysis.xml Thu Jul 26 09:26:47 2012 +0000 @@ -230,6 +230,13 @@ + + + + + + + diff -r 1481322efc02 -r 13855a555d3b flys-artifacts/doc/conf/conf.xml --- a/flys-artifacts/doc/conf/conf.xml Wed Jul 25 15:07:14 2012 +0000 +++ b/flys-artifacts/doc/conf/conf.xml Thu Jul 26 09:26:47 2012 +0000 @@ -278,6 +278,7 @@ de.intevation.flys.exports.fixings.FixLongitudinalSectionInfoGenerator de.intevation.flys.exports.fixings.FixDerivedCurveGenerator de.intevation.flys.exports.fixings.FixDerivedCurveInfoGenerator + de.intevation.flys.exports.WaterlevelExporter de.intevation.flys.exports.ReportGenerator de.intevation.flys.exports.ReportGenerator diff -r 1481322efc02 -r 13855a555d3b flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java Wed Jul 25 15:07:14 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java Thu Jul 26 09:26:47 2012 +0000 @@ -49,6 +49,8 @@ ) { logger.debug("FixRealizingCompute.computeAdvance"); + String id = getID(); + CalculationResult res; FixRealizingAccess access = @@ -108,8 +110,9 @@ } if (wqkms.length > 0) { - facets.add(new DataFacet(CSV, "CSV data")); - facets.add(new DataFacet(WST, "WST data")); + facets.add(new DataFacet(CSV, "CSV data", ComputeType.ADVANCE, hash, id)); + facets.add(new DataFacet(WST, "WST data", ComputeType.ADVANCE, hash, id)); + facets.add(new DataFacet(PDF, "PDF data", ComputeType.ADVANCE, hash, id)); } return res; diff -r 1481322efc02 -r 13855a555d3b flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java Wed Jul 25 15:07:14 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java Thu Jul 26 09:26:47 2012 +0000 @@ -36,6 +36,7 @@ import de.intevation.flys.artifacts.model.WQCKms; import de.intevation.flys.artifacts.model.WQKms; import de.intevation.flys.artifacts.model.WKmsJRDataSource; +import de.intevation.flys.artifacts.model.fixings.FixRealizingResult; import de.intevation.flys.artifacts.resources.Resources; import de.intevation.flys.utils.FLYSUtils; @@ -162,6 +163,9 @@ if (d instanceof WQKms []) { data.add((WQKms [])d); } + else if (d instanceof FixRealizingResult) { + data.add(((FixRealizingResult) d).getWQKms()); + } } }