inpro.incremental.sink
Class CurrentHypothesisViewer

java.lang.Object
  extended by inpro.incremental.PushBuffer
      extended by inpro.incremental.sink.CurrentHypothesisViewer
All Implemented Interfaces:
edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable

public class CurrentHypothesisViewer
extends PushBuffer


Field Summary
static java.awt.Font DEFAULT_FONT
           
(package private)  java.lang.String lastString
           
static java.lang.String PROP_SHOW_WINDOW
           
(package private)  javax.swing.JTextField textField
           
(package private)  boolean updateResults
           
 
Constructor Summary
CurrentHypothesisViewer()
           
 
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
 

Field Detail

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
Constructor Detail

CurrentHypothesisViewer

public CurrentHypothesisViewer()
Method Detail

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 lists
edits - 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