Package org.opt4j.common.completer
Class IndividualCompleterModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.opt4j.start.Opt4JModule
-
- org.opt4j.common.completer.IndividualCompleterModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class IndividualCompleterModule extends Opt4JModule
TheIndividualCompleterModuleis used to choose and configure aIndividualCompleter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndividualCompleterModule.TypeTheIndividualCompleterModule.TypeofIndividualCompleterto use.
-
Field Summary
Fields Modifier and Type Field Description protected intthreadsprotected IndividualCompleterModule.Typetype-
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
-
Constructor Summary
Constructors Constructor Description IndividualCompleterModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfig()Configure the module.intgetThreads()Returns the maximal number of parallel threads.IndividualCompleterModule.TypegetType()Returns the type of the completer.voidsetThreads(int threads)Sets the maximal number of parallel threads.voidsetType(IndividualCompleterModule.Type type)Sets the type of the completer.-
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 IndividualCompleterModule.Type type
-
threads
protected int threads
-
-
Method Detail
-
getType
public IndividualCompleterModule.Type getType()
Returns the type of the completer.- Returns:
- type of the completer
- See Also:
setType(org.opt4j.common.completer.IndividualCompleterModule.Type)
-
setType
public void setType(IndividualCompleterModule.Type type)
Sets the type of the completer.- Parameters:
type- the type of the completer- See Also:
getType()
-
getThreads
public int getThreads()
Returns the maximal number of parallel threads.- Returns:
- the maximal number of parallel threads
- See Also:
setThreads(int)
-
setThreads
public void setThreads(int threads)
Sets the maximal number of parallel threads.- Parameters:
threads- the maximal number of parallel threads- See Also:
getThreads()
-
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
-
-