Package org.opt4j.operator.neighbor
Class BasicNeighborModule
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.operator.OperatorModule<Neighbor<?>>
org.opt4j.operator.neighbor.NeighborModule
org.opt4j.operator.neighbor.BasicNeighborModule
- All Implemented Interfaces:
com.google.inject.Module
The basic
NeighborModule
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Type ofNeighbor
operator for thePermutationGenotype
. -
Field Summary
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
config()
Configure the module.Returns the permutation mode.void
setPermutationType
(BasicNeighborModule.PermutationType permutationMode) Sets the permutation mode.Methods inherited from class org.opt4j.operator.neighbor.NeighborModule
getOperatorTypeLiteral
Methods inherited from class org.opt4j.operator.OperatorModule
addOperator, addOperator, addOperator
Methods inherited from class org.opt4j.start.Opt4JModule
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multi
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Field Details
-
permutationType
-
-
Constructor Details
-
BasicNeighborModule
public BasicNeighborModule()Constructs aBasicNeighborModule
.
-
-
Method Details
-
getPermutationType
Returns the permutation mode.- Returns:
- the permutation mode
-
setPermutationType
Sets the permutation mode.- Parameters:
permutationMode
- the permutation mode
-
config
public void config()Description copied from class:Opt4JModule
Configure the module. Bind constants, listeners, and bind arbitrary classes.- Specified by:
config
in classOpt4JModule
- See Also:
-
Binder
-