|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.evolvica.engine.AbstractOperator
org.evolvica.core.common.AbstractGeneticOperator
org.evolvica.core.recombine.AbstractRecombinator
org.evolvica.core.recombine.iarray.IntegerArrayRecombinator
org.evolvica.core.recombine.iarray.CycleCrossover
Cycle Crossover (CX) for integer arrays. This operator requires two parents and produces two descendants.
| Field Summary | |
protected int |
initialPosition
Initial position to start cycle from. |
| Fields inherited from class org.evolvica.core.recombine.AbstractRecombinator |
builder |
| Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
| Constructor Summary | |
CycleCrossover()
Constructor. |
|
CycleCrossover(int initialPosition)
Constructor with initial cycle position. |
|
| 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 |
protected int initialPosition
| Constructor Detail |
public CycleCrossover()
public CycleCrossover(int initialPosition)
initialPosition - position to start cycle from| Method Detail |
protected int[][] recombine(int[][] parents)
IntegerArrayRecombinator
recombine in class IntegerArrayRecombinatorparents - array of integer arrays from parents
IntegerArrayRecombinator.recombine(int[][])public int getProducedChildren()
AbstractRecombinator
getProducedChildren in class AbstractRecombinatorAbstractRecombinator.getProducedChildren()public int getRequiredParents()
AbstractRecombinator
getRequiredParents in class AbstractRecombinatorAbstractRecombinator.getRequiredParents()
|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||