Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticState.java @ 1970:368040e5c400
Improved the Scheduler to be able to cancel running WSPLGEN jobs.
flys-artifacts/trunk@3384 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 12 Dec 2011 08:15:12 +0000 |
parents | 18928f0f339b |
children | 741d2067cfe1 |
line wrap: on
line source
package de.intevation.flys.artifacts.states; import java.util.List; import org.apache.log4j.Logger; import de.intevation.flys.artifacts.model.FacetTypes; import de.intevation.artifactdatabase.state.Facet; import de.intevation.artifactdatabase.state.DefaultOutput; /** * Yet, a non-abstract DefaultState. */ public class StaticState extends DefaultState implements FacetTypes { /** The logger that is used in this state. */ private static final Logger logger = Logger.getLogger(StaticState.class); /** * Trivial constructor, sets id and description. * @param id String used for both id and description. */ public StaticState(String id) { this(id, id); } public StaticState(String id, String description) { super(); setID(id); setDescription(description); } public void addDefaultChartOutput(String nameDesc, List<Facet> facets) { DefaultOutput output = new DefaultOutput(nameDesc, nameDesc, "image/png", facets, "chart"); getOutputs().add(output); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :