public class NeighborBoolean extends Object implements Neighbor<BooleanGenotype>
DiversityBoolean operator for the BooleanGenotype.| Constructor and Description |
|---|
NeighborBoolean(Rand random)
Constructs a
Neighbor operator for the BooleanGenotype. |
| Modifier and Type | Method and Description |
|---|---|
void |
neighbor(BooleanGenotype genotype)
Moves the
Genotype to a neighbor. |
@Inject public NeighborBoolean(Rand random)
Neighbor operator for the BooleanGenotype.random - the random number generatorpublic void neighbor(BooleanGenotype genotype)
NeighborGenotype to a neighbor.neighbor in interface Neighbor<BooleanGenotype>genotype - the Genotype to be changed