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
The
IndividualCompleterModule
is used to choose and configure a
IndividualCompleter
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
TheIndividualCompleterModule.Type
ofIndividualCompleter
to use. -
Field Summary
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
config()
Configure the module.int
Returns the maximal number of parallel threads.getType()
Returns the type of the completer.void
setThreads
(int threads) Sets the maximal number of parallel threads.void
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 Details
-
type
-
threads
protected int threads
-
-
Constructor Details
-
IndividualCompleterModule
public IndividualCompleterModule()
-
-
Method Details
-
getType
Returns the type of the completer.- Returns:
- type of the completer
- See Also:
-
setType
Sets the type of the completer.- Parameters:
type
- the type of the completer- See Also:
-
getThreads
public int getThreads()Returns the maximal number of parallel threads.- Returns:
- the maximal number of parallel threads
- See Also:
-
setThreads
public void setThreads(int threads) Sets the maximal number of parallel threads.- Parameters:
threads
- the maximal number of parallel threads- See Also:
-
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
-