alun.gchap
Class Genotype

java.lang.Object
  extended by alun.gchap.Genotype

public class Genotype
extends java.lang.Object

Represents a genotype as an un ordered pair of allele indexes.


Field Summary
 int a
          The first allele index.
 int b
          The second allele index.
 
Constructor Summary
Genotype(int i, int j)
          Creates a new genotype from the given allele numbers.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

public int a
The first allele index.


b

public int b
The second allele index.

Constructor Detail

Genotype

public Genotype(int i,
                int j)
Creates a new genotype from the given allele numbers. The alleles are unordered so using (i,j) and (j,i) are equivalent.