org.apache.commons.math.genetics
public class ChromosomePair extends Object
Chromosome
objects.Modifier and Type | Field and Description |
---|---|
private Chromosome |
first
the first chromosome in the pair.
|
private Chromosome |
second
the second chromosome in the pair.
|
Constructor and Description |
---|
ChromosomePair(Chromosome c1,
Chromosome c2)
Create a chromosome pair.
|
Modifier and Type | Method and Description |
---|---|
Chromosome |
getFirst()
Access the first chromosome.
|
Chromosome |
getSecond()
Access the second chromosome.
|
String |
toString() |
private final Chromosome first
private final Chromosome second
public ChromosomePair(Chromosome c1, Chromosome c2)
c1
- the first chromosome.c2
- the second chromosome.public Chromosome getFirst()
public Chromosome getSecond()
Copyright (c) 2003-2013 Apache Software Foundation