jeco.kernel.operator.crossover
Class SinglePointCrossover

java.lang.Object
  extended by jeco.kernel.operator.crossover.CrossoverOperator
      extended by jeco.kernel.operator.crossover.SinglePointCrossover

public class SinglePointCrossover
extends CrossoverOperator


Field Summary
static boolean DEFAULT_FIXED_CROSSOVER_POINT
           
static double DEFAULT_PROBABILITY
           
protected  boolean fixedCrossoverPoint
           
protected  double probability
           
 
Constructor Summary
SinglePointCrossover()
           
SinglePointCrossover(boolean fixedCrossoverPoint, double probability)
           
 
Method Summary
 Solution[] doCrossover(double probability, Solution parent1, Solution parent2)
           
 Solution[] execute(Solution parent1, Solution parent2)
          Executes the operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROBABILITY

public static final double DEFAULT_PROBABILITY
See Also:
Constant Field Values

DEFAULT_FIXED_CROSSOVER_POINT

public static final boolean DEFAULT_FIXED_CROSSOVER_POINT
See Also:
Constant Field Values

probability

protected double probability

fixedCrossoverPoint

protected boolean fixedCrossoverPoint
Constructor Detail

SinglePointCrossover

public SinglePointCrossover()

SinglePointCrossover

public SinglePointCrossover(boolean fixedCrossoverPoint,
                            double probability)
Method Detail

doCrossover

public Solution[] doCrossover(double probability,
                              Solution parent1,
                              Solution parent2)

execute

public Solution[] execute(Solution parent1,
                          Solution parent2)
Executes the operation

Specified by:
execute in class CrossoverOperator
Parameters:
object - An object containing an array of two parents
Returns:
An object containing the offSprings