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) |
getGenePositionpublic ReplicatedGeneRestriction(int genePositionToReplicate,
int genePosition)
public void restrictGene(Individual i)
restrictGene in class GeneRestrictionpublic int getRestrictionType()
getRestrictionType in class GeneRestriction