simbad.picoevo.ext.representation
Class Population_NEATPopulation_InnovationList

java.lang.Object
  extended by simbad.picoevo.ext.representation.Population_NEATPopulation_InnovationList

public class Population_NEATPopulation_InnovationList
extends java.lang.Object


Nested Class Summary
protected  class Population_NEATPopulation_InnovationList.Innovation
           
 
Field Summary
protected  java.util.Vector<Population_NEATPopulation_InnovationList.Innovation> innovations
           
protected  int nextInnovationID
           
protected  int nextNeuronID
           
 
Constructor Summary
Population_NEATPopulation_InnovationList()
           
Population_NEATPopulation_InnovationList(java.util.Vector<Element_NEAT_LGene> start_links, java.util.Vector<Element_NEAT_NGene> start_neurons)
           
 
Method Summary
 void add(Population_NEATPopulation_InnovationList.Innovation element)
           
 int checkInnovation(int in, int out, int innoType)
          Checks if this innovation has already occured, if it has it returns the innovation ID, if not it returns a negative value.
 Element_NEAT_NGene createNeuronFromID(int neuronID)
          Given a neuronID this function returns a clone of that neuron
 int createNewInnovation(int in, int out, int innoType)
          Creates a new innovation and returns its NEURON ID Innovation type, 0 = node, 1 = link;
 int createNewInnovation(int from, int to, int innoType, int neuronType, double sX, double sY)
          Creates a new innovation and returns its NEURON ID Innovation type, 0 = node, 1 = link;
 void displayInformation()
           
 Population_NEATPopulation_InnovationList.Innovation get(int index)
           
 int getNeuronID(int id)
           
 int getNextInnovationID()
           
 int getNextNeuronID()
           
 void initializeInnovationList(java.util.Vector<Element_NEAT_LGene> given_links, java.util.Vector<Element_NEAT_NGene> given_neurons)
          This function will initialize an innovation list that hasn't been initialized upon creation only call this if the innovation list has been constructed without an initial genome
 void setNextInnovationID(int nextInnovationID)
           
 void setNextNeuronID(int nextNeuronID)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

innovations

protected java.util.Vector<Population_NEATPopulation_InnovationList.Innovation> innovations

nextNeuronID

protected int nextNeuronID

nextInnovationID

protected int nextInnovationID
Constructor Detail

Population_NEATPopulation_InnovationList

public Population_NEATPopulation_InnovationList()

Population_NEATPopulation_InnovationList

public Population_NEATPopulation_InnovationList(java.util.Vector<Element_NEAT_LGene> start_links,
                                                java.util.Vector<Element_NEAT_NGene> start_neurons)
Method Detail

displayInformation

public void displayInformation()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

initializeInnovationList

public void initializeInnovationList(java.util.Vector<Element_NEAT_LGene> given_links,
                                     java.util.Vector<Element_NEAT_NGene> given_neurons)
This function will initialize an innovation list that hasn't been initialized upon creation only call this if the innovation list has been constructed without an initial genome


checkInnovation

public int checkInnovation(int in,
                           int out,
                           int innoType)
Checks if this innovation has already occured, if it has it returns the innovation ID, if not it returns a negative value. Innovation type, 0 = node, 1 = link;


createNewInnovation

public int createNewInnovation(int in,
                               int out,
                               int innoType)
Creates a new innovation and returns its NEURON ID Innovation type, 0 = node, 1 = link;


createNewInnovation

public int createNewInnovation(int from,
                               int to,
                               int innoType,
                               int neuronType,
                               double sX,
                               double sY)
Creates a new innovation and returns its NEURON ID Innovation type, 0 = node, 1 = link;


createNeuronFromID

public Element_NEAT_NGene createNeuronFromID(int neuronID)
Given a neuronID this function returns a clone of that neuron


get

public Population_NEATPopulation_InnovationList.Innovation get(int index)

add

public void add(Population_NEATPopulation_InnovationList.Innovation element)

getNextNeuronID

public int getNextNeuronID()

setNextNeuronID

public void setNextNeuronID(int nextNeuronID)

getNextInnovationID

public int getNextInnovationID()

setNextInnovationID

public void setNextInnovationID(int nextInnovationID)

getNeuronID

public int getNeuronID(int id)

size

public int size()