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
Nested ClassesModifier and TypeClassDescriptionstatic enumType ofDiversityoperator for theBooleanGenotype.static enumType ofDiversityoperator for theDoubleGenotype. -
Field Summary
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig()Configure the module.Returns the Type ofDiversityoperator forBooleanGenotype.Returns the Type ofDiversityoperator forDoubleGenotype.voidsetBooleanType(BasicDiversityModule.BooleanType booleanType) Sets the Type ofDiversityoperator forBooleanGenotype.voidsetDoubleType(BasicDiversityModule.DoubleType doubleType) Sets the the Type ofDiversityoperator forDoubleGenotype.Methods inherited from class org.opt4j.operator.diversity.DiversityModule
getOperatorTypeLiteralMethods inherited from class org.opt4j.operator.OperatorModule
addOperator, addOperator, addOperatorMethods inherited from class org.opt4j.start.Opt4JModule
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multiMethods 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 ofDiversityoperator forBooleanGenotype.- Returns:
- the type of diversity operator for boolean genotypes
-
setBooleanType
Sets the Type ofDiversityoperator forBooleanGenotype.- Parameters:
booleanType- the booleanType to set
-
getDoubleType
Returns the Type ofDiversityoperator forDoubleGenotype.- Returns:
- the type of diversity operator for double genotypes
-
setDoubleType
Sets the the Type ofDiversityoperator forDoubleGenotype.- Parameters:
doubleType- the doubleType to set
-
config
public void config()Description copied from class:Opt4JModuleConfigure the module. Bind constants, listeners, and bind arbitrary classes.- Specified by:
configin classOpt4JModule- See Also:
-
Binder
-