edu.cmu.sphinx.decoder.search
Interface ActiveListManager

All Superinterfaces:
Configurable
All Known Implementing Classes:
SimpleActiveListManager

public interface ActiveListManager
extends Configurable

An active list is maintained as a sorted list


Field Summary
static java.lang.String PROP_ABSOLUTE_WORD_BEAM_WIDTH
          Sphinx4 property that specifies the absolute word beam width
static int PROP_ABSOLUTE_WORD_BEAM_WIDTH_DEFAULT
          Sphinx4 property that specifies the default value for the absolute word beam width
static java.lang.String PROP_RELATIVE_WORD_BEAM_WIDTH
          Sphinx4 property that specifies the relative word beam width
static float PROP_RELATIVE_WORD_BEAM_WIDTH_DEFAULT
          Sphinx4 property that specifies the default value for the relative word beam width
 
Method Summary
 void add(Token token)
          Adds the given token to the list
 void dump()
          Dumps out debug info for the active 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 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 interface edu.cmu.sphinx.util.props.Configurable
getName, newProperties, register
 

Field Detail

PROP_ABSOLUTE_WORD_BEAM_WIDTH

public static final java.lang.String PROP_ABSOLUTE_WORD_BEAM_WIDTH
Sphinx4 property that specifies the absolute word beam width

See Also:
Constant Field Values

PROP_ABSOLUTE_WORD_BEAM_WIDTH_DEFAULT

public static final int PROP_ABSOLUTE_WORD_BEAM_WIDTH_DEFAULT
Sphinx4 property that specifies the default value for the absolute word beam width

See Also:
Constant Field Values

PROP_RELATIVE_WORD_BEAM_WIDTH

public static final java.lang.String PROP_RELATIVE_WORD_BEAM_WIDTH
Sphinx4 property that specifies the relative word beam width

See Also:
Constant Field Values

PROP_RELATIVE_WORD_BEAM_WIDTH_DEFAULT

public static final float PROP_RELATIVE_WORD_BEAM_WIDTH_DEFAULT
Sphinx4 property that specifies the default value for the relative word beam width

See Also:
Constant Field Values
Method Detail

add

public void add(Token token)
Adds the given token to the list

Parameters:
token - the token to add

replace

public void replace(Token oldToken,
                    Token newToken)
Replaces an old token with a new token

Parameters:
oldToken - the token to replace (or null in which case, replace works like add).
newToken - the new token to be placed in the list.

getNonEmittingListIterator

public java.util.Iterator getNonEmittingListIterator()
Returns an Iterator of all the non-emitting ActiveLists. The iteration order is the same as the search state order.

Returns:
an Iterator of non-emitting ActiveLists

getEmittingList

public ActiveList getEmittingList()
Returns the emitting ActiveList, and removes it from this manager.

Returns:
the emitting ActiveList

dump

public void dump()
Dumps out debug info for the active list manager


setNumStateOrder

public void setNumStateOrder(int numStateOrder)
Sets the total number of state types to be managed

Parameters:
numStateOrder - the total number of state types