done.inpro.system.completion
Class CompletionHypothesisListener

java.lang.Object
  extended by inpro.incremental.PushBuffer
      extended by inpro.incremental.IUModule
          extended by done.inpro.system.completion.CompletionHypothesisListener
All Implemented Interfaces:
edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable, AbstractFloorTracker.Listener

public class CompletionHypothesisListener
extends IUModule
implements AbstractFloorTracker.Listener


Nested Class Summary
 
Nested classes/interfaces inherited from class inpro.incremental.IUModule
IUModule.RightBuffer
 
Field Summary
private  java.util.List<java.lang.String> completeStrings
           
static java.awt.Font DEFAULT_FONT
           
private  java.util.List<java.lang.String> discardedStrings
           
private  javax.swing.JLabel label
           
private  java.lang.String lastDisplayedString
           
private  java.lang.String lastQueryText
           
private  java.util.List<java.lang.String> noWords
           
private  java.util.List<WordIU> processedNoWords
           
private  java.util.List<java.lang.String> yesWords
           
 
Fields inherited from class inpro.incremental.IUModule
iulisteners, logger, PROP_HYP_CHANGE_LISTENERS, PROP_LOG_TO_TEDVIEW, PROP_TEDVIEW_LOG_ADDRESS, PROP_TEDVIEW_LOG_PORT, rightBuffer, tedLogAdapter
 
Constructor Summary
CompletionHypothesisListener()
           
 
Method Summary
 void floor(AbstractFloorTracker.Signal signal, AbstractFloorTracker floorManager)
          will be called when the floor state changes
protected  void leftBufferUpdate(java.util.Collection<? extends IU> ius, java.util.List<? extends EditMessage<? extends IU>> edits)
          the method that IU modules must implement
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
           
 void reset()
           
 
Methods inherited from class inpro.incremental.IUModule
getTime, hypChange, logToTedView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FONT

public static final java.awt.Font DEFAULT_FONT

label

private javax.swing.JLabel label

lastDisplayedString

private java.lang.String lastDisplayedString

lastQueryText

private java.lang.String lastQueryText

completeStrings

private java.util.List<java.lang.String> completeStrings

discardedStrings

private java.util.List<java.lang.String> discardedStrings

yesWords

private java.util.List<java.lang.String> yesWords

noWords

private java.util.List<java.lang.String> noWords

processedNoWords

private java.util.List<WordIU> processedNoWords
Constructor Detail

CompletionHypothesisListener

public CompletionHypothesisListener()
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 IUModule
Throws:
edu.cmu.sphinx.util.props.PropertyException

leftBufferUpdate

protected void leftBufferUpdate(java.util.Collection<? extends IU> ius,
                                java.util.List<? extends EditMessage<? extends IU>> edits)
Description copied from class: IUModule
the method that IU modules must implement

Specified by:
leftBufferUpdate in class IUModule
Parameters:
ius - list of IUs that make up the current hypothesis
edits - a list of edits since the last call

reset

public void reset()
Specified by:
reset in interface edu.cmu.sphinx.instrumentation.Resetable
Overrides:
reset in class PushBuffer

floor

public void floor(AbstractFloorTracker.Signal signal,
                  AbstractFloorTracker floorManager)
Description copied from interface: AbstractFloorTracker.Listener
will be called when the floor state changes

Specified by:
floor in interface AbstractFloorTracker.Listener
Parameters:
signal - the signal describing the change in the floor
floorManager - the floor manager itself. in this way a consumer can request e.g. to change timeouts