public class CrossoverMachine extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SPLIT_MODE_BREADTH_FIRST
Indicates that
crossover is using SPLIT_MODE_BREADTH_FIRST mode. |
static int |
SPLIT_MODE_DEPTH_FIRST
Indicates that
crossover is using SPLIT_MODE_DEPTH_FIRST mode. |
static int |
SPLIT_MODE_RADNDOM
Indicates that
crossover is using SPLIT_MODE_RADNDOM mode. |
| Constructor and Description |
|---|
CrossoverMachine()
Constructs a new CrossoverMachine operator.
|
| Modifier and Type | Method and Description |
|---|---|
List<IAtomContainer> |
doCrossover(IAtomContainer dad,
IAtomContainer mom)
Performs the n point crossover of two
IAtomContainer. |
public static final int SPLIT_MODE_RADNDOM
crossover is using SPLIT_MODE_RADNDOM mode.public static final int SPLIT_MODE_DEPTH_FIRST
crossover is using SPLIT_MODE_DEPTH_FIRST mode.public static final int SPLIT_MODE_BREADTH_FIRST
crossover is using SPLIT_MODE_BREADTH_FIRST mode.public CrossoverMachine()
public List<IAtomContainer> doCrossover(IAtomContainer dad, IAtomContainer mom) throws CDKException
IAtomContainer.
Precondition: The atoms in the molecules are ordered by properties to
preserve (e. g. atom symbol). Due to its randomized nature, this method
fails in around 3% of all cases. A CDKException with message "Could not
mate these properly" will then be thrown.CDKException - if it was not possible to form offsprings.Copyright © 2018. All Rights Reserved.