Package org.opt4j.optimizer.ea
Class Spea2Module
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.optimizer.ea.SelectorModule
org.opt4j.optimizer.ea.Spea2Module
- All Implemented Interfaces:
com.google.inject.Module
The
Spea2Module configures the Spea2 selector.-
Field Summary
FieldsFields inherited from class org.opt4j.start.Opt4JModule
SINGLETON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig()Configure the module.intReturns the number of tournaments.voidsetTournament(int tournament) Sets the number of tournaments.Methods inherited from class org.opt4j.optimizer.ea.SelectorModule
bindSelectorMethods 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
-
Field Details
-
tournament
protected int tournament
-
-
Constructor Details
-
Spea2Module
public Spea2Module()
-
-
Method Details
-
getTournament
public int getTournament()Returns the number of tournaments.- Returns:
- the number of tournaments
- See Also:
-
setTournament
public void setTournament(int tournament) Sets the number of tournaments.- Parameters:
tournament- the number of tournaments- See Also:
-
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
-