Package org.opt4j.operators.diversity
Class BasicDiversityModule
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.core.start.Opt4JModule
org.opt4j.operators.OperatorModule<Diversity<?>>
org.opt4j.operators.diversity.DiversityModule
org.opt4j.operators.diversity.BasicDiversityModule
- All Implemented Interfaces:
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.core.start.Opt4JModule
SINGLETON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
config()
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.operators.OperatorModule
addOperator, addOperator, addOperator
Methods inherited from class org.opt4j.core.start.Opt4JModule
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, constant
Methods inherited from class com.google.inject.AbstractModule
configure
-
Constructor Details
-
BasicDiversityModule
public BasicDiversityModule()
-
-
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
-