inpro.incremental.sink
Class CurrentHypothesisViewer
java.lang.Object
inpro.incremental.PushBuffer
inpro.incremental.sink.CurrentHypothesisViewer
- All Implemented Interfaces:
- edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable
public class CurrentHypothesisViewer
- extends PushBuffer
Method Summary |
javax.swing.JTextField |
getTextField()
|
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)
|
void |
reset()
|
void |
updateResults(boolean ur)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_SHOW_WINDOW
@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_SHOW_WINDOW
- See Also:
- Constant Field Values
DEFAULT_FONT
public static final java.awt.Font DEFAULT_FONT
textField
javax.swing.JTextField textField
lastString
java.lang.String lastString
updateResults
boolean updateResults
CurrentHypothesisViewer
public CurrentHypothesisViewer()
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
getTextField
public javax.swing.JTextField getTextField()
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
updateResults
public void updateResults(boolean ur)
reset
public void reset()
- Specified by:
reset
in interface edu.cmu.sphinx.instrumentation.Resetable
- Overrides:
reset
in class PushBuffer