Mercurial > dive4elements > river
changeset 4406:bfb6464ecbb6
ExtremeCompute: Add DataFacets (csv, wst, defunc pdf).
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 05 Nov 2012 16:37:49 +0100 (2012-11-05) |
parents | 7e7587c905ab |
children | 9e440e0b2273 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/extreme/ExtremeCompute.java |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/extreme/ExtremeCompute.java Mon Nov 05 16:35:31 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/extreme/ExtremeCompute.java Mon Nov 05 16:37:49 2012 +0100 @@ -9,6 +9,7 @@ import de.intevation.flys.artifacts.access.ExtremeAccess; import de.intevation.flys.artifacts.model.CalculationResult; +import de.intevation.flys.artifacts.model.DataFacet; import de.intevation.flys.artifacts.model.FacetTypes; import de.intevation.flys.artifacts.model.ReportFacet; import de.intevation.flys.artifacts.model.WaterlevelFacet; @@ -84,15 +85,18 @@ Facet q = new WaterlevelFacet( i, LONGITUDINAL_Q, name, ComputeType.ADVANCE, id, hash); - // TODO add more facets like: - // csv, data, pdf wst facet, data facet - // furthermore, waterlevel - //facets.add(new CrossSectionWaterLineFacet(i, nameW)); - facets.add(w); facets.add(q); } + + facets.add( + new DataFacet(CSV, "CSV data", ComputeType.ADVANCE, hash, id)); + facets.add( + new DataFacet(PDF, "PDF data", ComputeType.ADVANCE, hash, id)); + facets.add( + new DataFacet(WST, "WST data", ComputeType.ADVANCE, hash, id)); + facets.add(new ExtremeCurveFacet(Resources.getMsg(context.getMeta(), "extreme_wq_curve", "extreme_wq_curve"))); facets.add(new ExtremeCurveFacet(Resources.getMsg(context.getMeta(),