edu.cmu.sphinx.util.props
Class ConfigurableAdapter

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
All Implemented Interfaces:
Configurable
Direct Known Subclasses:
AbstractScorer, BaseDataProcessor

public abstract class ConfigurableAdapter
extends java.lang.Object
implements Configurable

An default (abstract) implementation of a configurable that implements a meaning toString() and keeps a references to the Confurable's logger.

Author:
Holger Brandl

Constructor Summary
ConfigurableAdapter()
           
 
Method Summary
 java.lang.String getName()
          Retunrs the configuration name this Configurable.
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
 java.lang.String toString()
          Returns the name of this BaseDataProcessor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurableAdapter

public ConfigurableAdapter()
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()
Retunrs the configuration name this Configurable.


toString

public java.lang.String toString()
Returns the name of this BaseDataProcessor.

Overrides:
toString in class java.lang.Object
Returns:
the name of this BaseDataProcessor