public class ArchiveModule extends Opt4JModule
ArchiveModule determines an implementation for the
Archive interface.| Modifier and Type | Class and Description |
|---|---|
static class |
ArchiveModule.Type
Archive type.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
capacity |
protected int |
divisions |
protected ArchiveModule.Type |
type |
SINGLETON| Constructor and Description |
|---|
ArchiveModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
config()
Configure the module.
|
int |
getCapacity()
Returns the archive's capacity.
|
int |
getDivisions()
Returns the number of divisions for the
AdaptiveGridArchive. |
ArchiveModule.Type |
getType()
Returns the archive type.
|
void |
setCapacity(int capacity)
Sets the archive's capacity to the specified value.
|
void |
setDivisions(int divisions)
Set the number of divisions for the
AdaptiveGridArchive. |
void |
setType(ArchiveModule.Type type)
Sets the archive type to the specified value.
|
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multiaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingprotected ArchiveModule.Type type
protected int capacity
protected int divisions
public int getDivisions()
AdaptiveGridArchive.setDivisions(int)public void setDivisions(int divisions)
AdaptiveGridArchive.divisions - the number of divisionsgetDivisions()public void setType(ArchiveModule.Type type)
type - the new archive typegetType()public ArchiveModule.Type getType()
setType(org.opt4j.core.common.archive.ArchiveModule.Type)public void setCapacity(int capacity)
capacity - the new capacity (using namespace BoundedArchive)getCapacity()public int getCapacity()
setCapacity(int)public void config()
Opt4JModuleconfig in class Opt4JModuleBinder