public class Chromosome
Defines the chromosome structure and length. The name and length recorded for each chromosome.
public static Chromosome UNKNOWN
public static Chromosome instance(java.lang.String name)
Creates Chromosome instance with specified name. Returns single instance given same name multiple times.
name - chromosome namepublic static Chromosome instance(int name)
Creates Chromosome instance with specified name. Returns single instance given same name multiple times.
name - chromosome namepublic static Chromosome instance(java.lang.String name, int length, GeneralAnnotation features)
public java.lang.String getName()
public int getChromosomeNumber()
Returns the integer value of the chromosome (if name is not a number then Integer.MAX_VALUE is returned)
public int getLength()
public GeneralAnnotation getAnnotation()
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object obj)
public int compareTo(Chromosome o)
Compares chromosomes numerically if both are numbers. Otherwise compares as strings.
o - other chromosome