package edu.cmu.sphinx.util.props; import java.util.List; import edu.cmu.sphinx.util.props.Configurable; import edu.cmu.sphinx.util.props.PropertyException; import edu.cmu.sphinx.util.props.PropertySheet; import edu.cmu.sphinx.util.props.S4Boolean; import edu.cmu.sphinx.util.props.S4ComponentList; /** * DOCUMENT ME! * * @author Holger Brandl */ public class DummyFrontEnd implements Configurable { @S4Boolean(defaultValue = true) public static final String PROP_USE_MFFCS = "useMfccs"; boolean useMfccs; @S4ComponentList( type = Configurable.class, beTolerant = true, defaultList = {DummyProcessor.class, AnotherDummyProcessor.class, DummyProcessor.class} ) public static final String DATA_PROCS = "dataProcs"; List<Configurable> dataProcs; public void newProperties(PropertySheet ps) throws PropertyException { useMfccs = ps.getBoolean(PROP_USE_MFFCS); dataProcs = ps.getComponentList(DATA_PROCS, Configurable.class); } public boolean isUseMfccs() { return useMfccs; } public List<Configurable> getDataProcs() { return dataProcs; } public String getName() { return this.getClass().getName(); } }