inpro.incremental.processor
Class WordCatcher
java.lang.Object
inpro.incremental.PushBuffer
inpro.incremental.processor.WordCatcher
- All Implemented Interfaces:
- edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable
public class WordCatcher
- extends PushBuffer
A dummy module that expects WordIUs and beeps upon the reception of a specific word.
- Author:
- das, timo
Method Summary |
void |
hypChange(java.util.Collection<? extends IU> ius,
java.util.List<? extends EditMessage<? extends IU>> edits)
this should receive a list of current IUs and
a list of edit messages since the last call to hypChange |
void |
newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_HYP_CHANGE_LISTENERS
@S4ComponentList(type=PushBuffer.class)
public static final java.lang.String PROP_HYP_CHANGE_LISTENERS
- See Also:
- Constant Field Values
listeners
java.util.List<PushBuffer> listeners
PROP_WORD_TO_CATCH
@S4String
public static final java.lang.String PROP_WORD_TO_CATCH
- See Also:
- Constant Field Values
wordToCatch
private java.lang.String wordToCatch
WordCatcher
public WordCatcher()
hypChange
public void hypChange(java.util.Collection<? extends IU> ius,
java.util.List<? extends EditMessage<? extends IU>> edits)
- Description copied from class:
PushBuffer
- this should receive a list of current IUs and
a list of edit messages since the last call to hypChange
- Specified by:
hypChange
in class PushBuffer
- Parameters:
ius
- while this is a (plain) collection, the collection's iterator()
method must ensure a sensible ordering of the returned elements.
For now we have only used Lists (which are ordered),
but a Tree of IUs should also be possible and this should gracefully
work together with processors that expect listsedits
- a list of edits since the last call to hypChange
newProperties
public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
throws edu.cmu.sphinx.util.props.PropertyException
- Specified by:
newProperties
in interface edu.cmu.sphinx.util.props.Configurable
- Overrides:
newProperties
in class PushBuffer
- Throws:
edu.cmu.sphinx.util.props.PropertyException