Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.recombine.iarray
Class MultipointCrossover

java.lang.Object
  extended byorg.evolvica.engine.AbstractOperator
      extended byorg.evolvica.core.common.AbstractGeneticOperator
          extended byorg.evolvica.core.recombine.AbstractRecombinator
              extended byorg.evolvica.core.recombine.iarray.IntegerArrayRecombinator
                  extended byorg.evolvica.core.recombine.iarray.MultipointCrossover
All Implemented Interfaces:
IGeneticOperator, IOperator, IProcessor, java.io.Serializable

public class MultipointCrossover
extends IntegerArrayRecombinator

Multipoint Crossover for integer arrays. This operator produces two children from two parents. For the number of intersection na obtains: 0 < na < width( list ).

Since:
0.4.0
Version:
$Revision: 1.9 $ $Date: 2004/05/26 11:58:16 $
Author:
Andreas Rummler
See Also:
Serialized Form

Field Summary
protected  int[] intersectionPoints
          Intersection points.
protected  int intersections
          Number of intersections.
protected  java.util.Random random
          Random generator.
 
Fields inherited from class org.evolvica.core.recombine.AbstractRecombinator
builder
 
Fields inherited from class org.evolvica.engine.AbstractOperator
descriptor, element, id, name
 
Constructor Summary
MultipointCrossover()
          Constructor.
MultipointCrossover(int intersections)
          Constructor.
MultipointCrossover(int[] intersectionPoints)
          Constructor with intersection points.
 
Method Summary
 int getProducedChildren()
          Return the number of produced children.
 int getRequiredParents()
          Returns the number of required parents for a valid recombination.
protected  int[][] recombine(int[][] parents)
          Recombines integer arrays.
 
Methods inherited from class org.evolvica.core.recombine.iarray.IntegerArrayRecombinator
recombine
 
Methods inherited from class org.evolvica.core.recombine.AbstractRecombinator
getBuilder, process, setBuilder
 
Methods inherited from class org.evolvica.engine.AbstractOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.evolvica.engine.IOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 

Field Detail

random

protected java.util.Random random
Random generator.


intersections

protected int intersections
Number of intersections.


intersectionPoints

protected int[] intersectionPoints
Intersection points.

Constructor Detail

MultipointCrossover

public MultipointCrossover()
Constructor. The number of intersections is set to 1.


MultipointCrossover

public MultipointCrossover(int intersections)
Constructor.

Parameters:
intersections - number of intersections of the lists

MultipointCrossover

public MultipointCrossover(int[] intersectionPoints)
Constructor with intersection points. This constructor should only be used for debugging purposes.

Parameters:
intersectionPoints - array with intersection points
Method Detail

recombine

protected int[][] recombine(int[][] parents)
Description copied from class: IntegerArrayRecombinator
Recombines integer arrays.

Specified by:
recombine in class IntegerArrayRecombinator
Parameters:
parents - array of integer arrays from parents
Returns:
array of integer arrays for the children
See Also:
IntegerArrayRecombinator.recombine(int[][])

getProducedChildren

public int getProducedChildren()
Description copied from class: AbstractRecombinator
Return the number of produced children.

Specified by:
getProducedChildren in class AbstractRecombinator
Returns:
number of children
See Also:
AbstractRecombinator.getProducedChildren()

getRequiredParents

public int getRequiredParents()
Description copied from class: AbstractRecombinator
Returns the number of required parents for a valid recombination.

Specified by:
getRequiredParents in class AbstractRecombinator
Returns:
number of parents
See Also:
AbstractRecombinator.getRequiredParents()

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems