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 class
BasicDiversityModule.BooleanType
Type ofDiversity
operator for theBooleanGenotype
.static class
BasicDiversityModule.DoubleType
Type ofDiversity
operator 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 void
config()
Configure the module.BasicDiversityModule.BooleanType
getBooleanType()
Returns the Type ofDiversity
operator forBooleanGenotype
.BasicDiversityModule.DoubleType
getDoubleType()
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 Detail
-
BasicDiversityModule
public BasicDiversityModule()
Constructs aBasicDiversityModule
.
-
-
Method Detail
-
getBooleanType
public BasicDiversityModule.BooleanType getBooleanType()
Returns the Type ofDiversity
operator forBooleanGenotype
.- Returns:
- the type of diversity operator for boolean genotypes
-
setBooleanType
public void setBooleanType(BasicDiversityModule.BooleanType booleanType)
Sets the Type ofDiversity
operator forBooleanGenotype
.- Parameters:
booleanType
- the booleanType to set
-
getDoubleType
public BasicDiversityModule.DoubleType getDoubleType()
Returns the Type ofDiversity
operator forDoubleGenotype
.- Returns:
- the type of diversity operator for double genotypes
-
setDoubleType
public void setDoubleType(BasicDiversityModule.DoubleType doubleType)
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
-
-