edu.umass.cs.mallet.projects.seg_plus_coref.coreference
Class NodePairIterator

java.lang.Object
  extended byedu.umass.cs.mallet.base.pipe.iterator.AbstractPipeInputIterator
      extended byedu.umass.cs.mallet.projects.seg_plus_coref.coreference.NodePairIterator
All Implemented Interfaces:
java.util.Iterator, PipeInputIterator

public class NodePairIterator
extends AbstractPipeInputIterator


Field Summary
 
Fields inherited from class edu.umass.cs.mallet.base.pipe.iterator.AbstractPipeInputIterator
parentInstance
 
Constructor Summary
NodePairIterator(java.util.List nodes)
           
NodePairIterator(java.util.List nodes, double negativeProb)
           
NodePairIterator(java.util.List nodes, java.util.List pairs)
          NodePairIterator Constructor (2 arg overload).
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 Instance nextInstance()
           
 void remove()
           
 
Methods inherited from class edu.umass.cs.mallet.base.pipe.iterator.AbstractPipeInputIterator
setParentInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodePairIterator

public NodePairIterator(java.util.List nodes)

NodePairIterator

public NodePairIterator(java.util.List nodes,
                        double negativeProb)

NodePairIterator

public NodePairIterator(java.util.List nodes,
                        java.util.List pairs)
NodePairIterator Constructor (2 arg overload). Instead of all pairs of nodes (N choose 2), this constructor only makes the pairs passed in a list. Each element of the list is assumed to be an array of 2 Integers.

Parameters:
nodes -
pairs -
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in class AbstractPipeInputIterator

nextInstance

public Instance nextInstance()
Specified by:
nextInstance in interface PipeInputIterator
Specified by:
nextInstance in class AbstractPipeInputIterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Overrides:
next in class AbstractPipeInputIterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator
Overrides:
remove in class AbstractPipeInputIterator