Package org.opt4j.operator.neighbor
Class NeighborGenericImplementation
java.lang.Object
org.opt4j.operator.AbstractGenericOperator<Neighbor<Genotype>,Neighbor<?>>
org.opt4j.operator.neighbor.NeighborGenericImplementation
- All Implemented Interfaces:
Operator<Genotype>
,GenericOperator<Neighbor<Genotype>>
,Neighbor<Genotype>
public class NeighborGenericImplementation
extends AbstractGenericOperator<Neighbor<Genotype>,Neighbor<?>>
implements Neighbor<Genotype>
Implementation of the
Neighbor
interface.-
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 inherited from class org.opt4j.operator.AbstractGenericOperator
classOperators, cldef, genericOperators
-
Constructor Summary
ModifierConstructorDescriptionprotected
NeighborGenericImplementation
(Rand random) Constructs theNeighborGenericImplementation
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Moves theGenotype
to a neighbor.protected void
neighborComposite
(CompositeGenotype<?, ?> genotype) Methods inherited from class org.opt4j.operator.AbstractGenericOperator
addOperator, getOperator, getOperators, getTarget, inject
-
Field Details
-
random
-
-
Constructor Details
-
NeighborGenericImplementation
Constructs theNeighborGenericImplementation
.- Parameters:
random
- the random number generator
-
-
Method Details