ca.cas.nucleus
Class Chromosome

java.lang.Object
  extended by 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
 
Method Summary
 int compareTo(Chromosome c)
           
 int compareTo(java.lang.Object o)
           
 long getBasePairCount()
           
 long getCentromereLocation()
           
 int getHomologue()
           
 java.lang.String getName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 represents
homologue - which homologue of the chromosome this object represents (0 or 1)
basePairCount - the number of base pairs in the chromosome this object represents
centromereLocation - the location of the centromere in the chromosome this object represents
Method Detail

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)