Ejemplo n.º 1
0
        protected override ConnectionGene CreateConnectionGene(uint innovationNumber, uint inNodeId, uint outNodeId, double weight, bool enabled = true)
        {
            EvaluatableConnectionGene connection = new EvaluatableConnectionGene(Id, innovationNumber, inNodeId, outNodeId, weight, enabled);

            // Create a new connection gene from the start and end nodes.
            return(connection);
        }
Ejemplo n.º 2
0
 public void AddDependency(EvaluatableConnectionGene connectionGene)
 {
     throw new Exception("Input nodes are not allowed to have connections from other nodes as input.");
 }
Ejemplo n.º 3
0
 public void AddDependency(EvaluatableConnectionGene connectionGene)
 {
     _connectionGenes.Add(connectionGene);
 }