public class FixedGeneRestriction extends GeneRestriction
Modifier and Type | Field and Description |
---|---|
private double |
fixedValue |
BOUNDED_VALUES, FIXED_VALUE, NO_RESTRICTION, REPLICATE_GENE
Constructor and Description |
---|
FixedGeneRestriction(double fixedValue,
int genePosition) |
Modifier and Type | Method and Description |
---|---|
int |
getRestrictionType() |
void |
restrictGene(Individual i) |
getGenePosition
public FixedGeneRestriction(double fixedValue, int genePosition)
public void restrictGene(Individual i)
restrictGene
in class GeneRestriction
public int getRestrictionType()
getRestrictionType
in class GeneRestriction