Interface Mating

  • All Known Implementing Classes:
    MatingCrossoverMutate

    public interface Mating
    The Mating interface is used to create offspring from a given set of parents.
    • Method Detail

      • getOffspring

        Collection<Individual> getOffspring​(int size,
                                            Individual... parents)
        Creates offspring from a given set of parents.
        Parameters:
        size - the number of individuals to create
        parents - the parents
        Returns:
        the offspring
      • getOffspring

        Collection<Individual> getOffspring​(int size,
                                            Collection<Individual> parents)
        Creates offspring from a given set of parents.
        Parameters:
        size - the number of individuals to create
        parents - the parents
        Returns:
        the offspring