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

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

public class TestConfigurable
extends java.lang.Object
implements Configurable

DOCUMENT ME!

Author:
Holger Brandl

Field Summary
static java.lang.String PROP_ASTRING
           
static java.lang.String PROP_DATA_PROC
           
static java.lang.String PROP_GAMMA
           
 
Constructor Summary
TestConfigurable()
           
 
Method Summary
 DummyProcessor getDataProc()
           
 double getGamma()
           
 java.lang.String getName()
           
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
 void testDynamicConfCreationWithoutDefaultProperty()
           
 void testNullStringProperty()
           
 void testPropSheetFromConfigurableInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_DATA_PROC

@S4Component(type=AnotherDummyProcessor.class)
public static final java.lang.String PROP_DATA_PROC
See Also:
Constant Field Values

PROP_ASTRING

@S4String(mandatory=false)
public static final java.lang.String PROP_ASTRING
See Also:
Constant Field Values

PROP_GAMMA

@S4Double(defaultValue=1.3)
public static final java.lang.String PROP_GAMMA
See Also:
Constant Field Values
Constructor Detail

TestConfigurable

public TestConfigurable()
Method Detail

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()

getGamma

public double getGamma()

getDataProc

public DummyProcessor getDataProc()

testDynamicConfCreationWithoutDefaultProperty

public void testDynamicConfCreationWithoutDefaultProperty()

testNullStringProperty

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

testPropSheetFromConfigurableInstance

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