|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalun.markov.BasicVariable
alun.genepi.GeneticVariable
alun.genepi.Genotype
public class Genotype
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 |
|---|
public Genotype(int n)
| Method Detail |
|---|
public int pat()
public int mat()
public boolean setState(int i,
int j)
public void setId(int n)
public int getId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||