alun.genepi
Class Genotype

java.lang.Object
  extended by alun.markov.BasicVariable
      extended by alun.genepi.GeneticVariable
          extended by alun.genepi.Genotype
All Implemented Interfaces:
Iterable, Variable
Direct Known Subclasses:
UnorderedGenotype

public class Genotype
extends GeneticVariable

A variable representing the ordered genotype for an individual as some genetic locus.


Constructor Summary
Genotype(int n)
           
 
Method Summary
 int getId()
           
 int mat()
          Return the state of the maternal allele for this genotype.
 int pat()
          Returns the state of the paternal allele for this genotype.
 void setId(int n)
           
 boolean setState(int i, int j)
          Sets the state of the genotype to match the given states for the paternal and maternal alleles.
 
Methods inherited from class alun.genepi.GeneticVariable
restore, save
 
Methods inherited from class alun.markov.BasicVariable
getName, getNStates, getState, getStates, init, main, next, setName, setState, setStates, setStates, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Genotype

public Genotype(int n)
Method Detail

pat

public int pat()
Returns the state of the paternal allele for this genotype.


mat

public int mat()
Return the state of the maternal allele for this genotype.


setState

public boolean setState(int i,
                        int j)
Sets the state of the genotype to match the given states for the paternal and maternal alleles.


setId

public void setId(int n)

getId

public int getId()