public class Chromosome extends Object implements Comparable<Chromosome>, Serializable
Modifier and Type | Field and Description |
---|---|
static Integer |
UNKNOWN
Integer value representing an unknown chromosome.
|
Constructor and Description |
---|
Chromosome(String chromosomeName)
Create a new Chromosome.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Chromosome o)
Compares based on the chromosome numbers.
|
String |
toString()
Returns the chromosome as a string.
|
public static final Integer UNKNOWN
public Chromosome(String chromosomeName)
chromosomeName
- the name of the chromosome, integer or X, Y, Z, W
is preferredpublic String toString()
public int compareTo(Chromosome o)
compareTo
in interface Comparable<Chromosome>
Copyright © 2016. All rights reserved.