|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.decoder.search.SimpleActiveListManager
public class 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.util.Iterator |
getNonEmittingListIterator()
Returns an Iterator of all the non-emitting ActiveLists. |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
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 |
---|
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_CHECK_PRIOR_LISTS_EMPTY
public static final boolean PROP_CHECK_PRIOR_LISTS_EMPTY_DEFAULT
@S4ComponentList(type=ActiveListFactory.class) public static final java.lang.String PROP_ACTIVE_LIST_FACTORIES
Constructor Detail |
---|
public SimpleActiveListManager()
Method Detail |
---|
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 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 |