1 /* 2 * This file is part of JGAP. 3 * 4 * JGAP offers a dual license model containing the LGPL as well as the MPL. 5 * 6 * For licencing information please see the file license.txt included with JGAP 7 * or have a look at the top of class org.jgap.Chromosome which representatively 8 * includes the JGAP license policy applicable for any file delivered with JGAP. 9 */ 10 package org.jgap.distr; 11 12 import org.jgap.*; 13 14 /** 15 * Interface for implementations allowing to merge two or more independent 16 * Populations to be merged together into one Population. 17 * 18 * @author Klaus Meffert 19 * @since 2.0 20 */ 21 public interface IPopulationMerger { 22 /** String containing the CVS revision. Read out via reflection!*/ 23 final static String CVS_REVISION = "$Revision: 1.4 $"; 24 25 /** 26 * Merges two Population's into one that has the given size. 27 * 28 * @param a_population1 first Population 29 * @param a_population2 second Population 30 * @param a_new_population_size size of merged Population 31 * @return the resulting Population 32 * 33 * @author Klaus Meffert 34 * @since 2.0 35 */ 36 Population mergePopulations(Population a_population1, 37 Population a_population2, 38 int a_new_population_size); 39 } 40