Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java @ 2732:7311d0336600
Adjusted dc conf.
flys-artifacts/trunk@4465 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 22 May 2012 19:42:54 +0000 |
parents | 5ce5abd173b9 |
children | 89731cb8c385 |
line wrap: on
line source
package de.intevation.flys.artifacts.states; import java.util.List; import org.apache.log4j.Logger; import de.intevation.artifacts.CallMeta; import de.intevation.artifactdatabase.state.Facet; import de.intevation.flys.artifacts.FLYSArtifact; import de.intevation.flys.artifacts.model.GaugeDischargeFacet; import de.intevation.flys.artifacts.model.FacetTypes; import de.intevation.flys.artifacts.resources.Resources; /** * The only state for an GaugeDischargeState (River and km known). */ public class GaugeDischargeState extends DefaultState implements FacetTypes { /** Developer-centric description of facet. */ public static final String I18N_DESCRIPTION = "facet.discharge.curve"; /** The logger that is used in this state. */ private static final Logger logger = Logger.getLogger(GaugeDischargeState.class); /** * Add an GaugeDischargeFacet to list of Facets. * * @param artifact Ignored. * @param hash Ignored. * @param context Ignored. * @param meta CallMeta to be used for internationalization. * @param facets List to add AnnotationFacet to. * * @return null. */ @Override public Object computeInit( FLYSArtifact artifact, String hash, Object context, CallMeta meta, List<Facet> facets ) { logger.debug("GaugeDischargeState.computeInit()"); // TODO caching, / CalculationResultusage GaugeDischargeFacet facet = new GaugeDischargeFacet( 0, DISCHARGE_CURVE, DISCHARGE_CURVE); //Resources.getMsg(meta, I18N_DESCRIPTION, I18N_DESCRIPTION)); facets.add(facet); return null; } // computeAdvance //WINFOArtifact#getDischargeCurveData } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :