teichmann@5863: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5863: * Software engineering by Intevation GmbH teichmann@5863: * teichmann@5863: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5863: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5863: * documentation coming with Dive4Elements River for details. teichmann@5863: */ teichmann@5863: teichmann@5831: package org.dive4elements.river.artifacts.states; raimund@3058: raimund@3058: import org.apache.log4j.Logger; raimund@3058: teichmann@5831: import org.dive4elements.artifactdatabase.data.StateData; teichmann@5831: import org.dive4elements.artifacts.CallContext; ingo@3407: raimund@3058: /** raimund@3058: * @author Raimund Renkert raimund@3058: */ raimund@3058: public class OutliersInput extends DefaultState { raimund@3058: raimund@3058: /** The logger used in this class. */ raimund@3058: private static Logger logger = Logger.getLogger(OutliersInput.class); raimund@3058: ingo@3407: public static final String PARAMETER_NAME = "outliers"; ingo@3407: raimund@3058: raimund@3058: /** raimund@3058: * The default constructor that initializes an empty State object. raimund@3058: */ raimund@3058: public OutliersInput() { raimund@3058: } raimund@3058: felix@4059: felix@4059: /** Tell UI how to allow for input. */ raimund@3058: @Override raimund@3058: protected String getUIProvider() { raimund@3058: return "outliers_input"; raimund@3058: } raimund@3058: ingo@3407: ingo@3407: @Override ingo@3407: protected String[] getDefaultsFor(CallContext context, StateData data) { ingo@3407: if (data != null && data.getName().equals(PARAMETER_NAME)) { ingo@3407: return new String[] {"3", "3"}; ingo@3407: } ingo@3407: ingo@3407: return null; ingo@3407: } raimund@3058: } raimund@3058: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :