org.jgap
Interface IGeneConstraintChecker
-
- All Superinterfaces:
- java.io.Serializable
public interface IGeneConstraintChecker extends java.io.SerializableInterface for checking whether a given allele value is valid to be set for a given gene instance. The contained validate()-method will be called in the setAllele(Object) method of Gene implementations.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCVS_REVISIONString containing the CVS revision.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanverify(Gene a_gene, java.lang.Object a_alleleValue, IChromosome a_chromosome, int a_geneIndex)Check if a given allele value is valid for the given gene instance.
-
-
-
Field Detail
-
CVS_REVISION
static final java.lang.String CVS_REVISION
String containing the CVS revision. Read out via reflection!- See Also:
- Constant Field Values
-
-
Method Detail
-
verify
boolean verify(Gene a_gene, java.lang.Object a_alleleValue, IChromosome a_chromosome, int a_geneIndex)
Check if a given allele value is valid for the given gene instance.- Parameters:
a_gene- the gene the given allele is to be validated fora_alleleValue- the allele value to be validateda_chromosome- the chromosome the gene is contained (or null, if unknown)a_geneIndex- the index the gene is contained in the chromosome at, or -1 if unknown- Returns:
- true: allele may be set for gene; false: validity check failed
- Since:
- 2.0
-
-
DMelt 3.0 © DataMelt by jWork.ORG