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