net.sourceforge.cilib.neuralnetwork.generic
Class StandardLayerIterator

java.lang.Object
  extended by net.sourceforge.cilib.neuralnetwork.generic.StandardLayerIterator
All Implemented Interfaces:
LayerIterator

public class StandardLayerIterator
extends Object
implements LayerIterator

Author:
stefanv A Standard iterator for traversing a layer of NeuronConfoig objects in order.

Constructor Summary
StandardLayerIterator(ArrayList<NeuronConfig> layer)
           
 
Method Summary
 int currentPosition()
           
 int getNrNeurons()
           
 boolean hasMore()
           
 void nextNeuron()
           
 void reset()
           
 NeuronConfig value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardLayerIterator

public StandardLayerIterator(ArrayList<NeuronConfig> layer)
Method Detail

nextNeuron

public void nextNeuron()
Specified by:
nextNeuron in interface LayerIterator

value

public NeuronConfig value()
Specified by:
value in interface LayerIterator

getNrNeurons

public int getNrNeurons()
Specified by:
getNrNeurons in interface LayerIterator

hasMore

public boolean hasMore()
Specified by:
hasMore in interface LayerIterator

reset

public void reset()
Specified by:
reset in interface LayerIterator

currentPosition

public int currentPosition()
Specified by:
currentPosition in interface LayerIterator


Copyright © 2009 CIRG. All Rights Reserved.