Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/map/WSPLGENReportFacet.java @ 5094:6da542572ab1 dami
Use HWSLines data for HWS and Lines.
This is a quick fix to keep compatibility. Both Artifacts will
be replaced by a HWSLineArtifact.
Patch provided by Raimund Renkert <rrenkert@intevation.de>
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 25 Feb 2013 12:38:55 +0100 |
parents | e1cf76b3ecb4 |
children |
line wrap: on
line source
package de.intevation.flys.artifacts.model.map; import org.apache.log4j.Logger; import de.intevation.artifacts.Artifact; import de.intevation.artifacts.CallContext; import de.intevation.artifactdatabase.state.Facet; import de.intevation.flys.artifacts.model.CalculationResult; import de.intevation.flys.artifacts.model.ReportFacet; import de.intevation.flys.artifacts.states.DefaultState.ComputeType; /** * This facet is used to provide WSPLGEN reports <b>only</b>. */ public class WSPLGENReportFacet extends ReportFacet { private static Logger logger = Logger.getLogger(WSPLGENReportFacet.class); protected CalculationResult result; public WSPLGENReportFacet() { } public WSPLGENReportFacet( ComputeType type, String hash, String stateId, CalculationResult result ) { super(type, hash, stateId); this.result = result; } @Override public Object getData(Artifact artifact, CallContext context) { return result.getReport(); } @Override public Facet deepCopy() { WSPLGENReportFacet copy = new WSPLGENReportFacet(); copy.set(this); copy.type = type; copy.hash = hash; copy.stateId = stateId; copy.result = result; return copy; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :