|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.acoustic.UnitManager
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()
Retrieves the name for this configurable component |
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 has new data. |
void |
register(java.lang.String name,
Registry registry)
Register my properties. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SILENCE_NAME
public static final Unit SILENCE
Constructor Detail |
public UnitManager()
Method Detail |
public void register(java.lang.String name, Registry registry) throws PropertyException
Configurable
register
in interface Configurable
name
- the name of the componentregistry
- the registry for this component
PropertyException
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()
Configurable
getName
in interface Configurable
public Unit getUnit(java.lang.String name, boolean filler, Context context)
name
- the name of the unitfiller
- true
if the unit is a filler unitcontext
- the context for this unit
public Unit getUnit(java.lang.String name, boolean filler)
name
- the name of the unitfiller
- true
if the unit is a filler unit
public Unit getUnit(java.lang.String name)
name
- the name of the unit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |