org.encog.ml.genetic.innovation
Class BasicInnovationList

java.lang.Object
  extended by org.encog.ml.genetic.innovation.BasicInnovationList
All Implemented Interfaces:
Serializable, InnovationList
Direct Known Subclasses:
NEATInnovationList

public class BasicInnovationList
extends Object
implements InnovationList, Serializable

Provides basic functionality for a list of innovations.

See Also:
Serialized Form

Constructor Summary
BasicInnovationList()
           
 
Method Summary
 void add(Innovation innovation)
          Add an innovation.
 Innovation get(int id)
          Get a specific innovation, by index.
 List<Innovation> getInnovations()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicInnovationList

public BasicInnovationList()
Method Detail

add

public final void add(Innovation innovation)
Add an innovation.

Specified by:
add in interface InnovationList
Parameters:
innovation - The innovation to add.

get

public final Innovation get(int id)
Get a specific innovation, by index.

Specified by:
get in interface InnovationList
Parameters:
id - The innovation index id.
Returns:
The innovation.

getInnovations

public final List<Innovation> getInnovations()
Specified by:
getInnovations in interface InnovationList
Returns:
A list of innovations.


Copyright © 2011. All Rights Reserved.