inpro.incremental.evaluation
Class BasicEvaluator

java.lang.Object
  extended by inpro.incremental.PushBuffer
      extended by inpro.incremental.evaluation.BasicEvaluator
All Implemented Interfaces:
edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable
Direct Known Subclasses:
CompletionEvaluator, WordLagTracker

public abstract class BasicEvaluator
extends PushBuffer


Field Summary
protected  java.util.List<WordIU> committedWords
          list of committed words
 
Constructor Summary
BasicEvaluator()
           
 
Method Summary
protected  void checkForCommits(java.util.List<? extends EditMessage<? extends IU>> edits)
           
protected abstract  void evaluate()
           
 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
 
Methods inherited from class inpro.incremental.PushBuffer
newProperties, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

committedWords

protected java.util.List<WordIU> committedWords
list of committed words

Constructor Detail

BasicEvaluator

public BasicEvaluator()
Method Detail

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

checkForCommits

protected void checkForCommits(java.util.List<? extends EditMessage<? extends IU>> edits)

evaluate

protected abstract void evaluate()