|
Evolvica Core API Version 0.6.2 Last Modified: June 29 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.Int.IntegerRecombinator
org.evolvica.core.recombine.Int.DiscreteRecombinator
Discrete recombination between two integers. This operator creates a single chromosome by choosing randomly one of the parent chromosomes.
Field Summary |
Fields inherited from class org.evolvica.core.recombine.AbstractRecombinator |
builder |
Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
Constructor Summary | |
DiscreteRecombinator()
|
Method Summary | |
int |
getProducedChildren()
Return the number of produced children. |
int |
getRequiredParents()
Returns the number of required parents for a valid recombination. |
int[] |
recombine(int[] parents)
Recombines integer numbers. |
Methods inherited from class org.evolvica.core.recombine.Int.IntegerRecombinator |
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 |
Constructor Detail |
public DiscreteRecombinator()
Method Detail |
public int[] recombine(int[] parents)
IntegerRecombinator
recombine
in class IntegerRecombinator
parents
- array of integer values from parents
IntegerRecombinator.recombine(int[])
public int getProducedChildren()
AbstractRecombinator
getProducedChildren
in class AbstractRecombinator
AbstractRecombinator.getProducedChildren()
public int getRequiredParents()
AbstractRecombinator
getRequiredParents
in class AbstractRecombinator
AbstractRecombinator.getRequiredParents()
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |