|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.util.props.test.DummyComp
public class DummyComp
Field Summary | |
---|---|
static java.lang.String |
PROP_ALPHA
|
static java.lang.String |
PROP_BEAM_WIDTH
doc of beamWidth. |
static java.lang.String |
PROP_BEST_ASR
doc of the string. |
static java.lang.String |
PROP_BEST_PIZZA
|
static java.lang.String |
PROP_FRONTEND
doc of frontend. |
static java.lang.String |
PROP_USE_FOOBAR
|
Constructor Summary | |
---|---|
DummyComp()
|
Method Summary | |
---|---|
double |
getAlpha()
|
int |
getBeamWidth()
|
java.lang.String |
getBestASR()
|
DummyFrontEnd |
getFrontEnd()
|
java.util.logging.Logger |
getLogger()
|
java.lang.String |
getName()
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
void |
testCustomizedDefaultInstance()
Use the all defaults defined by the annotations to instantiate a Configurable. |
void |
testGetDefaultInstance()
|
void |
testUseXmlConfig()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@S4Integer(defaultValue=4) public static final java.lang.String PROP_BEAM_WIDTH
@S4String(defaultValue="salami&cheese") public static final java.lang.String PROP_BEST_PIZZA
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_USE_FOOBAR
@S4Component(type=DummyFrontEnd.class, defaultClass=AnotherDummyFrontEnd.class) public static final java.lang.String PROP_FRONTEND
@S4Double(defaultValue=1.3, range={-1.0,15.0}) public static final java.lang.String PROP_ALPHA
@S4String(defaultValue="sphinx4", range={"sphinx4","htk"}) public static final java.lang.String PROP_BEST_ASR
Constructor Detail |
---|
public DummyComp()
Method Detail |
---|
public int getBeamWidth()
public DummyFrontEnd getFrontEnd()
public java.lang.String getBestASR()
public double getAlpha()
public java.util.logging.Logger getLogger()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.public java.lang.String getName()
public void testGetDefaultInstance() throws PropertyException, java.lang.InstantiationException
PropertyException
java.lang.InstantiationException
public void testCustomizedDefaultInstance() throws PropertyException, java.lang.InstantiationException
PropertyException
java.lang.InstantiationException
public void testUseXmlConfig() throws java.io.IOException, PropertyException, java.lang.InstantiationException
java.io.IOException
PropertyException
java.lang.InstantiationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |