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