net.sourceforge.cilib.neuralnetwork.generic.datacontainers
Class LinearDataIterator

java.lang.Object
  extended by net.sourceforge.cilib.neuralnetwork.generic.datacontainers.LinearDataIterator
All Implemented Interfaces:
Serializable, NeuralNetworkDataIterator, Cloneable

public class LinearDataIterator
extends Object
implements NeuralNetworkDataIterator

Author:
stefanv
See Also:
Serialized Form

Constructor Summary
LinearDataIterator(ArrayList<NNPattern> list)
          Create an instance, with the provided list.
 
Method Summary
 int currentPos()
          
 NeuralNetworkDataIterator getClone()
          Create a cloned copy of the current object and return it.
 boolean hasMore()
          
 void next()
          
 void reset()
          
 int size()
          
 NNPattern value()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearDataIterator

public LinearDataIterator(ArrayList<NNPattern> list)
Create an instance, with the provided list.

Parameters:
list - The list of data patterns.
Method Detail

next

public void next()

Specified by:
next in interface NeuralNetworkDataIterator

hasMore

public boolean hasMore()

Specified by:
hasMore in interface NeuralNetworkDataIterator

reset

public void reset()

Specified by:
reset in interface NeuralNetworkDataIterator

value

public NNPattern value()

Specified by:
value in interface NeuralNetworkDataIterator

size

public int size()

Specified by:
size in interface NeuralNetworkDataIterator

currentPos

public int currentPos()

Specified by:
currentPos in interface NeuralNetworkDataIterator

getClone

public NeuralNetworkDataIterator getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface NeuralNetworkDataIterator
Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()


Copyright © 2009 CIRG. All Rights Reserved.