edu.cmu.sphinx.linguist.acoustic
Class UnitManager

java.lang.Object
  extended by edu.cmu.sphinx.linguist.acoustic.UnitManager
All Implemented Interfaces:
Configurable

public class UnitManager
extends java.lang.Object
implements Configurable

Manages the set of units for a recognizer


Field Summary
static Unit SILENCE
          The silence unit
static java.lang.String SILENCE_NAME
          The name for the silence unit
 
Constructor Summary
UnitManager()
           
 
Method Summary
 java.lang.String getName()
           
 Unit getUnit(java.lang.String name)
          Gets or creates a unit from the unit pool
 Unit getUnit(java.lang.String name, boolean filler)
          Gets or creates a unit from the unit pool
 Unit getUnit(java.lang.String name, boolean filler, Context context)
          Gets or creates a unit from the unit pool
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SILENCE_NAME

public static final java.lang.String SILENCE_NAME
The name for the silence unit

See Also:
Constant Field Values

SILENCE

public static final Unit SILENCE
The silence unit

Constructor Detail

UnitManager

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

getUnit

public Unit getUnit(java.lang.String name,
                    boolean filler,
                    Context context)
Gets or creates a unit from the unit pool

Parameters:
name - the name of the unit
filler - true if the unit is a filler unit
context - the context for this unit
Returns:
the unit

getUnit

public Unit getUnit(java.lang.String name,
                    boolean filler)
Gets or creates a unit from the unit pool

Parameters:
name - the name of the unit
filler - true if the unit is a filler unit
Returns:
the unit

getUnit

public Unit getUnit(java.lang.String name)
Gets or creates a unit from the unit pool

Parameters:
name - the name of the unit
Returns:
the unit