org.mindswap.pellet
Class IndividualIterator

java.lang.Object
  extended by org.mindswap.pellet.IndividualIterator
All Implemented Interfaces:
java.util.Iterator<Individual>
Direct Known Subclasses:
CompletionQueue

public class IndividualIterator
extends java.lang.Object
implements java.util.Iterator<Individual>

An iterator to return nodes in the order they are added. Having a separate iterator instead of using nodes.iterator() allows to change the nodes table without resetting the iteration process.

Author:
Evren Sirin

Constructor Summary
IndividualIterator(ABox abox)
          Create an iterator over all the individuals in the ABox
 
Method Summary
 boolean hasNext()
           
 Individual next()
           
 void remove()
           
 void reset(NodeSelector s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndividualIterator

public IndividualIterator(ABox abox)
Create an iterator over all the individuals in the ABox

Method Detail

hasNext

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

reset

public void reset(NodeSelector s)

next

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

remove

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


Copyright © 2004 Evren Sirin. All Rights Reserved.