org.encog.solve.genetic.innovation
Class BasicInnovationList

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

public class BasicInnovationList
extends Object
implements InnovationList

Provides basic functionality for a list of innovations.


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 void add(Innovation innovation)
Add an innovation.

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

get

public 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 List<Innovation> getInnovations()
Specified by:
getInnovations in interface InnovationList
Returns:
A list of innovations.


Copyright © 2011. All Rights Reserved.