Package org.opt4j.operator.neighbor
Class NeighborGenericImplementation
- java.lang.Object
-
- org.opt4j.operator.AbstractGenericOperator<Neighbor<Genotype>,Neighbor<?>>
-
- org.opt4j.operator.neighbor.NeighborGenericImplementation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opt4j.operator.AbstractGenericOperator
AbstractGenericOperator.ClassComparator, AbstractGenericOperator.OperatorClassPredicate, AbstractGenericOperator.OperatorHolder<P>, AbstractGenericOperator.OperatorPredicate, AbstractGenericOperator.OperatorVoidPredicate
-
-
Field Summary
Fields Modifier and Type Field Description protected Rand
random
-
Fields inherited from class org.opt4j.operator.AbstractGenericOperator
classOperators, cldef, genericOperators
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NeighborGenericImplementation(Rand random)
Constructs theNeighborGenericImplementation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
neighbor(Genotype genotype)
Moves theGenotype
to a neighbor.protected void
neighborComposite(CompositeGenotype<?,?> genotype)
-
Methods inherited from class org.opt4j.operator.AbstractGenericOperator
addOperator, getOperator, getOperators, getTarget, inject
-
-
-
-
Field Detail
-
random
protected final Rand random
-
-
Constructor Detail
-
NeighborGenericImplementation
@Inject protected NeighborGenericImplementation(Rand random)
Constructs theNeighborGenericImplementation
.- Parameters:
random
- the random number generator
-
-
Method Detail
-
neighbor
public void neighbor(Genotype genotype)
Description copied from interface:Neighbor
Moves theGenotype
to a neighbor.
-
neighborComposite
protected void neighborComposite(CompositeGenotype<?,?> genotype)
-
-