Class Genotype

java.lang.Object
net.bmahe.genetics4j.core.Genotype

public class Genotype extends Object
  • Field Details

    • chromosomes

      private final Chromosome[] chromosomes
  • Constructor Details

  • Method Details

    • getSize

      public int getSize()
    • getChromosomes

      public Chromosome[] getChromosomes()
    • getChromosome

      public Chromosome getChromosome(int index)
    • getChromosome

      public <T extends Chromosome> T getChromosome(int index, Class<T> clazz)
    • 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