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
public class BasicNeighborModule extends NeighborModule
The basicNeighborModule
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BasicNeighborModule.PermutationType
Type ofNeighbor
operator for thePermutationGenotype
.
-
Field Summary
Fields Modifier and Type Field Description protected BasicNeighborModule.PermutationType
permutationType
-
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
-
Constructor Summary
Constructors Constructor Description BasicNeighborModule()
Constructs aBasicNeighborModule
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
config()
Configure the module.BasicNeighborModule.PermutationType
getPermutationType()
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 Detail
-
permutationType
protected BasicNeighborModule.PermutationType permutationType
-
-
Constructor Detail
-
BasicNeighborModule
public BasicNeighborModule()
Constructs aBasicNeighborModule
.
-
-
Method Detail
-
getPermutationType
public BasicNeighborModule.PermutationType getPermutationType()
Returns the permutation mode.- Returns:
- the permutation mode
-
setPermutationType
public void setPermutationType(BasicNeighborModule.PermutationType permutationMode)
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
-
-