Package org.opt4j.optimizer.ea
Class BasicMatingModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.opt4j.start.Opt4JModule
-
- org.opt4j.optimizer.ea.MatingModule
-
- org.opt4j.optimizer.ea.BasicMatingModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class BasicMatingModule extends MatingModule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BasicMatingModule.CouplerType
TheBasicMatingModule.CouplerType
determines the coupler operator to use.
-
Field Summary
Fields Modifier and Type Field Description protected BasicMatingModule.CouplerType
type
-
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
-
Constructor Summary
Constructors Constructor Description BasicMatingModule()
Constructs aBasicMatingModule
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
config()
Configure the module.BasicMatingModule.CouplerType
getType()
Returns the type ofCoupler
operator to use.void
setType(BasicMatingModule.CouplerType type)
Sets the the type ofCoupler
operator to use.-
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
-
-
-
-
Field Detail
-
type
protected BasicMatingModule.CouplerType type
-
-
Constructor Detail
-
BasicMatingModule
public BasicMatingModule()
Constructs aBasicMatingModule
.
-
-
Method Detail
-
getType
public BasicMatingModule.CouplerType getType()
Returns the type ofCoupler
operator to use.- Returns:
- the the type of coupler operator to use
- See Also:
setType(org.opt4j.optimizer.ea.BasicMatingModule.CouplerType)
-
setType
public void setType(BasicMatingModule.CouplerType type)
Sets the the type ofCoupler
operator to use.- Parameters:
type
- the type to set- See Also:
getType()
-
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
-
-