Class NeatChromosome

java.lang.Object
net.bmahe.genetics4j.neat.chromosomes.NeatChromosome
All Implemented Interfaces:
Chromosome

public class NeatChromosome extends Object implements Chromosome
  • Field Details

    • numInputs

      private final int numInputs
    • numOutputs

      private final int numOutputs
    • minWeightValue

      private final float minWeightValue
    • maxWeightValue

      private final float maxWeightValue
    • connections

      private final List<Connection> connections
  • Constructor Details

    • NeatChromosome

      public NeatChromosome(int _numInputs, int _numOutputs, float _minWeightValue, float _maxWeightValue, List<Connection> _connections)
  • Method Details

    • getNumAlleles

      public int getNumAlleles()
      Specified by:
      getNumAlleles in interface Chromosome
    • getNumInputs

      public int getNumInputs()
    • getNumOutputs

      public int getNumOutputs()
    • getMinWeightValue

      public float getMinWeightValue()
    • getMaxWeightValue

      public float getMaxWeightValue()
    • getConnections

      public List<Connection> getConnections()
    • getInputNodeIndices

      public Set<Integer> getInputNodeIndices()
    • getOutputNodeIndices

      public Set<Integer> getOutputNodeIndices()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object