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
public class BasicDiversityModule extends DiversityModule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBasicDiversityModule.BooleanTypeType ofDiversityoperator for theBooleanGenotype.static classBasicDiversityModule.DoubleTypeType ofDiversityoperator for theDoubleGenotype.
-
Field Summary
-
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
-
Constructor Summary
Constructors Constructor Description BasicDiversityModule()Constructs aBasicDiversityModule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfig()Configure the module.BasicDiversityModule.BooleanTypegetBooleanType()Returns the Type ofDiversityoperator forBooleanGenotype.BasicDiversityModule.DoubleTypegetDoubleType()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
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 Detail
-
BasicDiversityModule
public BasicDiversityModule()
Constructs aBasicDiversityModule.
-
-
Method Detail
-
getBooleanType
public BasicDiversityModule.BooleanType getBooleanType()
Returns the Type ofDiversityoperator forBooleanGenotype.- Returns:
- the type of diversity operator for boolean genotypes
-
setBooleanType
public void setBooleanType(BasicDiversityModule.BooleanType booleanType)
Sets the Type ofDiversityoperator forBooleanGenotype.- Parameters:
booleanType- the booleanType to set
-
getDoubleType
public BasicDiversityModule.DoubleType getDoubleType()
Returns the Type ofDiversityoperator forDoubleGenotype.- Returns:
- the type of diversity operator for double genotypes
-
setDoubleType
public void setDoubleType(BasicDiversityModule.DoubleType doubleType)
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
-
-