|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Locus
Defines a Locus at which one of several Alleles may appear.
The set of possible alleles is backed by a HashSet so
that ordering is not important.
Currently, all alleles are equally likely to occur in
a seed population.
| Method Summary | |
|---|---|
void |
add(Allele allele)
Method to add an allele to this locus. |
void |
add(Allele allele,
int frequency)
Method to add an allele to this locus. |
boolean |
isLegal(Allele allele)
Method to determine if this Locus may contain allele with a non-zero frequency |
Allele |
pickAllele()
Method to randomly pick an allele from the set of possible alleles, and chosen according to the frequencies specified for each allele. |
| Method Detail |
|---|
void add(Allele allele)
allele - An allele which can possibly appear at
this locus.
void add(Allele allele,
int frequency)
allele - An allele which can possibly appear at
this locus.boolean isLegal(Allele allele)
allele -
Allele pickAllele()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||