The Encog Project

org.encog.neural.data.buffer
Class BufferedNeuralDataSet.BufferedNeuralDataSetIterator

java.lang.Object
  extended by org.encog.neural.data.buffer.BufferedNeuralDataSet.BufferedNeuralDataSetIterator
All Implemented Interfaces:
java.util.Iterator<NeuralDataPair>
Enclosing class:
BufferedNeuralDataSet

public class BufferedNeuralDataSet.BufferedNeuralDataSetIterator
extends java.lang.Object
implements java.util.Iterator<NeuralDataPair>

An iterator to move through the buffered data set.


Constructor Summary
BufferedNeuralDataSet.BufferedNeuralDataSetIterator()
          Construct the buffered iterator.
 
Method Summary
 void close()
          Close the iterator, and the underlying file.
 boolean hasNext()
           
 NeuralDataPair next()
           
 void remove()
          Not supported, will throw an error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedNeuralDataSet.BufferedNeuralDataSetIterator

public BufferedNeuralDataSet.BufferedNeuralDataSetIterator()
Construct the buffered iterator. This is where the file is actually opened.

Method Detail

close

public void close()
Close the iterator, and the underlying file.


hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<NeuralDataPair>
Returns:
True if there is more data to read.

next

public NeuralDataPair next()
Specified by:
next in interface java.util.Iterator<NeuralDataPair>
Returns:
Read the next pair.

remove

public void remove()
Not supported, will throw an error.

Specified by:
remove in interface java.util.Iterator<NeuralDataPair>

The Encog Project