com.anji.neat
Class ConnectionGene

java.lang.Object
  extended byorg.jgap.Gene
      extended bycom.anji.neat.ConnectionGene
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class ConnectionGene
extends Gene

Gene corresponding to NEAT connection gene according to Evolving Neural Networks through Augmenting Topologies

Author:
Philip Tucker
See Also:
Serialized Form

Constructor Summary
ConnectionGene(java.lang.Long anInnovationId, java.lang.Long aSrcNeuronId, java.lang.Long aDestNeuronId)
          Construct new ConnectionGene with given src, destination, and ID.
 
Method Summary
 java.lang.Long getDestNeuronId()
           
 java.lang.Long getSrcNeuronId()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jgap.Gene
compareTo, equals, getInnovationId, hashCode, setInnovationId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionGene

public ConnectionGene(java.lang.Long anInnovationId,
                      java.lang.Long aSrcNeuronId,
                      java.lang.Long aDestNeuronId)
Construct new ConnectionGene with given src, destination, and ID. Protected since this should only be constructed via factory methods in ConnectionGene and NeatChromosomeUtility

Parameters:
anInnovationId -
aSrcNeuronId -
aDestNeuronId -
Method Detail

toString

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

getDestNeuronId

public java.lang.Long getDestNeuronId()
Returns:
innovation ID of destination neuron

getSrcNeuronId

public java.lang.Long getSrcNeuronId()
Returns:
innovation ID of source neuron