|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.decoder.search.SimpleActiveListManager
A list of ActiveLists. Different token types are placed in different lists. This class is not thread safe and should only be used by a single thread.
Field Summary | |
static java.lang.String |
PROP_ACTIVE_LIST_FACTORIES
Sphinx property that defines the name of the active list factory to be used by this search manager. |
static java.lang.String |
PROP_CHECK_PRIOR_LISTS_EMPTY
This property is used in the Iterator returned by the getNonEmittingListIterator() method. |
static boolean |
PROP_CHECK_PRIOR_LISTS_EMPTY_DEFAULT
The default value of PROP_CHECK_PRIOR_LISTS_EMPTY. |
Fields inherited from interface edu.cmu.sphinx.decoder.search.ActiveListManager |
PROP_ABSOLUTE_WORD_BEAM_WIDTH, PROP_ABSOLUTE_WORD_BEAM_WIDTH_DEFAULT, PROP_RELATIVE_WORD_BEAM_WIDTH, PROP_RELATIVE_WORD_BEAM_WIDTH_DEFAULT |
Constructor Summary | |
SimpleActiveListManager()
|
Method Summary | |
void |
add(Token token)
Adds the given token to the list |
void |
dump()
Outputs debugging info for this list manager |
ActiveList |
getEmittingList()
Returns the emitting ActiveList, and removes it from this manager. |
java.lang.String |
getName()
Retrieves the name for this configurable component |
java.util.Iterator |
getNonEmittingListIterator()
Returns an Iterator of all the non-emitting ActiveLists. |
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. |
void |
replace(Token oldToken,
Token newToken)
Replaces an old token with a new token |
void |
setNumStateOrder(int numStateOrder)
Sets the total number of state types to be managed |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROP_CHECK_PRIOR_LISTS_EMPTY
public static final boolean PROP_CHECK_PRIOR_LISTS_EMPTY_DEFAULT
public static final java.lang.String PROP_ACTIVE_LIST_FACTORIES
Constructor Detail |
public SimpleActiveListManager()
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 void setNumStateOrder(int numStateOrder)
ActiveListManager
setNumStateOrder
in interface ActiveListManager
numStateOrder
- the total number of state typespublic void add(Token token)
add
in interface ActiveListManager
token
- the token to addpublic void replace(Token oldToken, Token newToken)
replace
in interface ActiveListManager
oldToken
- the token to replace (or null in which case, replace
works like add).newToken
- the new token to be placed in the list.public ActiveList getEmittingList()
getEmittingList
in interface ActiveListManager
public java.util.Iterator getNonEmittingListIterator()
getNonEmittingListIterator
in interface ActiveListManager
public void dump()
dump
in interface ActiveListManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |