Package org.opt4j.operator.diversity
Class BasicDiversityModule
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.operator.OperatorModule<Diversity<?>>
org.opt4j.operator.diversity.DiversityModule
org.opt4j.operator.diversity.BasicDiversityModule
- All Implemented Interfaces:
com.google.inject.Module
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Type ofDiversity
operator for theBooleanGenotype
.static enum
Type ofDiversity
operator for theDoubleGenotype
. -
Field Summary
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
config()
Configure the module.Returns the Type ofDiversity
operator forBooleanGenotype
.Returns the Type ofDiversity
operator forDoubleGenotype
.void
setBooleanType
(BasicDiversityModule.BooleanType booleanType) Sets the Type ofDiversity
operator forBooleanGenotype
.void
setDoubleType
(BasicDiversityModule.DoubleType doubleType) Sets the the Type ofDiversity
operator forDoubleGenotype
.Methods inherited from class org.opt4j.operator.diversity.DiversityModule
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
-
Constructor Details
-
BasicDiversityModule
public BasicDiversityModule()Constructs aBasicDiversityModule
.
-
-
Method Details
-
getBooleanType
Returns the Type ofDiversity
operator forBooleanGenotype
.- Returns:
- the type of diversity operator for boolean genotypes
-
setBooleanType
Sets the Type ofDiversity
operator forBooleanGenotype
.- Parameters:
booleanType
- the booleanType to set
-
getDoubleType
Returns the Type ofDiversity
operator forDoubleGenotype
.- Returns:
- the type of diversity operator for double genotypes
-
setDoubleType
Sets the the Type ofDiversity
operator forDoubleGenotype
.- Parameters:
doubleType
- the doubleType to set
-
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
-