![JAR search and dependency download from the Maven repository](/logo.png)
org.evosuite.ga.operators.crossover.CrossOverFunction Maven / Gradle / Ivy
The newest version!
/**
* Copyright (C) 2010-2018 Gordon Fraser, Andrea Arcuri and EvoSuite
* contributors
*
* This file is part of EvoSuite.
*
* EvoSuite is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3.0 of the License, or
* (at your option) any later version.
*
* EvoSuite is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with EvoSuite. If not, see .
*/
package org.evosuite.ga.operators.crossover;
import java.io.Serializable;
import org.evosuite.ga.Chromosome;
import org.evosuite.ga.ConstructionFailedException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Cross over two individuals
*
* @author Gordon Fraser
*/
public abstract class CrossOverFunction implements Serializable {
private static final long serialVersionUID = -4765602400132319324L;
/** Constant logger
*/
protected static final Logger logger = LoggerFactory.getLogger(CrossOverFunction.class);
/**
* Replace parents with crossed over individuals
*
* @param parent1
* a {@link org.evosuite.ga.Chromosome} object.
* @param parent2
* a {@link org.evosuite.ga.Chromosome} object.
* @throws org.evosuite.ga.ConstructionFailedException
* if any.
*/
public abstract void crossOver(Chromosome parent1, Chromosome parent2)
throws ConstructionFailedException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy