com.anji.neat
Class ConnectionGene
java.lang.Object
org.jgap.Gene
com.anji.neat.ConnectionGene
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
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. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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 -
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