Package org.biojavax.ga.functions
Class SimpleGACrossResult
java.lang.Object
org.biojavax.ga.functions.SimpleGACrossResult
- All Implemented Interfaces:
GACrossResult
Simple implementation of the GACross
interface. Basically a
data structure to hold the results of a GACross
- Since:
- 1.5
- Version:
- 1.0
- Author:
- Mark Schreiber
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleGACrossResult
(PointLocation[] crossOverPositions, SymbolList[] chromosomes) -
Method Summary
Modifier and TypeMethodDescriptionGets the chromosomes after the crossReturns the collection of cross over locations from the last cross
-
Constructor Details
-
SimpleGACrossResult
-
-
Method Details
-
getCrossOverPositions
Description copied from interface:GACrossResult
Returns the collection of cross over locations from the last cross- Specified by:
getCrossOverPositions
in interfaceGACrossResult
- Returns:
- null if there has been no call to performCrossOver, a zero length
array if there was no cross overs or an array of
PointLocations
describing the cross over points.
-
getChromosomes
Description copied from interface:GACrossResult
Gets the chromosomes after the cross- Specified by:
getChromosomes
in interfaceGACrossResult
- Returns:
- the two Chromosomes, by convention the first will be chromA and the second chromB
-