edu.cmu.sphinx.util.props.test
Class DummyComp

java.lang.Object
  extended by edu.cmu.sphinx.util.props.test.DummyComp
All Implemented Interfaces:
Configurable

public class DummyComp
extends java.lang.Object
implements Configurable


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

PROP_BEAM_WIDTH

@S4Integer(defaultValue=4)
public static final java.lang.String PROP_BEAM_WIDTH
doc of beamWidth.

See Also:
Constant Field Values

PROP_BEST_PIZZA

@S4String(defaultValue="salami&cheese")
public static final java.lang.String PROP_BEST_PIZZA
See Also:
Constant Field Values

PROP_USE_FOOBAR

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_USE_FOOBAR
See Also:
Constant Field Values

PROP_FRONTEND

@S4Component(type=DummyFrontEnd.class,
             defaultClass=AnotherDummyFrontEnd.class)
public static final java.lang.String PROP_FRONTEND
doc of frontend.

See Also:
Constant Field Values

PROP_ALPHA

@S4Double(defaultValue=1.3,
          range={-1.0,15.0})
public static final java.lang.String PROP_ALPHA
See Also:
Constant Field Values

PROP_BEST_ASR

@S4String(defaultValue="sphinx4",
          range={"sphinx4","htk"})
public static final java.lang.String PROP_BEST_ASR
doc of the string.

See Also:
Constant Field Values
Constructor Detail

DummyComp

public DummyComp()
Method Detail

getBeamWidth

public int getBeamWidth()

getFrontEnd

public DummyFrontEnd getFrontEnd()

getBestASR

public java.lang.String getBestASR()

getAlpha

public double getAlpha()

getLogger

public java.util.logging.Logger getLogger()

newProperties

public void newProperties(PropertySheet ps)
                   throws PropertyException
Description copied from interface: Configurable
This method is called when this configurable component needs to be reconfigured.

Specified by:
newProperties in interface Configurable
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

getName

public java.lang.String getName()

testGetDefaultInstance

public void testGetDefaultInstance()
                            throws PropertyException,
                                   java.lang.InstantiationException
Throws:
PropertyException
java.lang.InstantiationException

testCustomizedDefaultInstance

public void testCustomizedDefaultInstance()
                                   throws PropertyException,
                                          java.lang.InstantiationException
Use the all defaults defined by the annotations to instantiate a Configurable.

Throws:
PropertyException
java.lang.InstantiationException

testUseXmlConfig

public void testUseXmlConfig()
                      throws java.io.IOException,
                             PropertyException,
                             java.lang.InstantiationException
Throws:
java.io.IOException
PropertyException
java.lang.InstantiationException