ca.cas.nucleus
Class Chromosome
java.lang.Object
ca.cas.nucleus.Chromosome
- All Implemented Interfaces:
- java.lang.Comparable
public class Chromosome
- extends java.lang.Object
- implements java.lang.Comparable
Each Chromosome object represents an individual chromosome
within a particular genome.
Constructor Summary |
Chromosome(java.lang.String name,
int homologue,
long basePairCount,
long centromereLocation,
boolean circular)
Constructs a Chromosome object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Chromosome
public Chromosome(java.lang.String name,
int homologue,
long basePairCount,
long centromereLocation,
boolean circular)
- Constructs a Chromosome object
- Parameters:
name
- which chromosome in the genome this object representshomologue
- which homologue of the chromosome this object represents (0 or 1)basePairCount
- the number of base pairs in the chromosome this object representscentromereLocation
- the location of the centromere in the chromosome this object represents
getName
public java.lang.String getName()
getHomologue
public int getHomologue()
getBasePairCount
public long getBasePairCount()
getCentromereLocation
public long getCentromereLocation()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
compareTo
public int compareTo(Chromosome c)