Package org.opt4j.common.archive
Class ArchiveModule
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.common.archive.ArchiveModule
- All Implemented Interfaces:
com.google.inject.Module
The
ArchiveModule determines an implementation for the
Archive interface.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.opt4j.start.Opt4JModule
SINGLETON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig()Configure the module.intReturns the archive's capacity.intReturns the number of divisions for theAdaptiveGridArchive.getType()Returns the archive type.voidsetCapacity(int capacity) Sets the archive's capacity to the specified value.voidsetDivisions(int divisions) Set the number of divisions for theAdaptiveGridArchive.voidsetType(ArchiveModule.Type type) Sets the archive type to the specified value.Methods 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
-
type
-
capacity
protected int capacity -
divisions
protected int divisions
-
-
Constructor Details
-
ArchiveModule
public ArchiveModule()
-
-
Method Details
-
getDivisions
public int getDivisions()Returns the number of divisions for theAdaptiveGridArchive.- Returns:
- the number of divisions
- See Also:
-
setDivisions
public void setDivisions(int divisions) Set the number of divisions for theAdaptiveGridArchive.- Parameters:
divisions- the number of divisions- See Also:
-
setType
Sets the archive type to the specified value.- Parameters:
type- the new archive type- See Also:
-
getType
Returns the archive type.- Returns:
- the archive type
- See Also:
-
setCapacity
public void setCapacity(int capacity) Sets the archive's capacity to the specified value.- Parameters:
capacity- the new capacity (using namespaceBoundedArchive)- See Also:
-
getCapacity
public int getCapacity()Returns the archive's capacity.- Returns:
- the archive's capacity
- 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
-