edu.cmu.minorthird.text
Class SpanDifference.Looper

java.lang.Object
  extended by edu.cmu.minorthird.text.SpanDifference.Looper
All Implemented Interfaces:
java.util.Iterator<Span>
Enclosing class:
SpanDifference

public static class SpanDifference.Looper
extends java.lang.Object
implements java.util.Iterator<Span>

A Span.Looper which also passes out two additional types of information about each returned span s:

  1. if s is a FALSE_POS, FALSE_NEG, or TRUE_POS, relative to the original spans.
  2. the true span and/or guess spans associated with s.


Constructor Summary
SpanDifference.Looper(java.util.Collection<edu.cmu.minorthird.text.SpanDifference.DiffedSpan> c)
           
SpanDifference.Looper(java.util.Iterator<edu.cmu.minorthird.text.SpanDifference.DiffedSpan> i)
           
 
Method Summary
 int estimatedSize()
           
 Span getOriginalGuessSpan()
          Guess span that support this difference.
 int getStatus()
          Return status of the last span returned - does it indicate a false positive, false negative, or true positive area?
 boolean hasNext()
           
 Span next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpanDifference.Looper

public SpanDifference.Looper(java.util.Collection<edu.cmu.minorthird.text.SpanDifference.DiffedSpan> c)

SpanDifference.Looper

public SpanDifference.Looper(java.util.Iterator<edu.cmu.minorthird.text.SpanDifference.DiffedSpan> i)
Method Detail

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Span>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Span>

next

public Span next()
Specified by:
next in interface java.util.Iterator<Span>

getStatus

public int getStatus()
Return status of the last span returned - does it indicate a false positive, false negative, or true positive area?


getOriginalGuessSpan

public Span getOriginalGuessSpan()
Guess span that support this difference.


estimatedSize

public int estimatedSize()