|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.inject.AbstractModule
org.opt4j.core.start.Opt4JModule
org.opt4j.core.common.archive.ArchiveModule
public class ArchiveModule
The ArchiveModule determines an implementation for the
Archive interface.
UnboundedArchive,
PopulationArchive,
CrowdingArchive,
AdaptiveGridArchive,
Archive| Nested Class Summary | |
|---|---|
static class |
ArchiveModule.Type
Archive type. |
| Field Summary | |
|---|---|
protected int |
capacity
|
protected int |
divisions
|
protected ArchiveModule.Type |
type
|
| Fields inherited from class org.opt4j.core.start.Opt4JModule |
|---|
SINGLETON |
| Constructor Summary | |
|---|---|
ArchiveModule()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.opt4j.core.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArchiveModule.Type type
protected int capacity
protected int divisions
| Constructor Detail |
|---|
public ArchiveModule()
| Method Detail |
|---|
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()
Opt4JModule
config in class Opt4JModuleBinder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||