public class SimpleActiveListManager extends java.lang.Object implements ActiveListManager
This class is not thread safe and should only be used by a single thread.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_ACTIVE_LIST_FACTORIES
The 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.
|
PROP_ABSOLUTE_WORD_BEAM_WIDTH, PROP_RELATIVE_WORD_BEAM_WIDTH
Constructor and Description |
---|
SimpleActiveListManager() |
SimpleActiveListManager(java.util.List<ActiveListFactory> activeListFactories,
boolean checkPriorLists)
Create a simple list manager
|
Modifier and Type | Method and Description |
---|---|
void |
add(Token token)
Adds the given token to the list
|
void |
clearEmittingList()
Clears emitting list in manager
|
void |
dump()
Outputs debugging info for this list manager
|
ActiveList |
getEmittingList()
Returns the emitting ActiveList from the manager
|
java.util.Iterator<ActiveList> |
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 |
setNumStateOrder(int numStateOrder)
Sets the total number of state types to be managed
|
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_CHECK_PRIOR_LISTS_EMPTY
@S4ComponentList(type=ActiveListFactory.class) public static final java.lang.String PROP_ACTIVE_LIST_FACTORIES
public SimpleActiveListManager(java.util.List<ActiveListFactory> activeListFactories, boolean checkPriorLists)
activeListFactories
- factoriescheckPriorLists
- check prior lists during operationpublic SimpleActiveListManager()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new dataPropertyException
- 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 ActiveList getEmittingList()
getEmittingList
in interface ActiveListManager
public void clearEmittingList()
clearEmittingList
in interface ActiveListManager
public java.util.Iterator<ActiveList> getNonEmittingListIterator()
getNonEmittingListIterator
in interface ActiveListManager
public void dump()
dump
in interface ActiveListManager