|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.core.IndividualSet
org.opt4j.core.optimizer.Archive
org.opt4j.core.common.archive.AbstractArchive
org.opt4j.core.common.archive.BoundedArchive
public abstract class BoundedArchive
An Archive with bounded size.
| Field Summary | |
|---|---|
protected int |
capacity
The capacity of this Archive |
| Fields inherited from class org.opt4j.core.IndividualSet |
|---|
individuals, listeners |
| Constructor Summary | |
|---|---|
BoundedArchive(int capacity)
Constructs a bounded archive with the specified capacity. |
|
| Method Summary | |
|---|---|
boolean |
addCheckedIndividual(Individual individual)
Adds the Individual to this Archive without further
checks. |
boolean |
addCheckedIndividuals(java.util.Collection<? extends Individual> c)
Adds the Individuals to this Archive without further
checks. |
int |
getCapacity()
Returns the capacity of this BoundedArchive. |
void |
setCapacity(int capacity)
Sets the capacity of this BoundedArchive. |
| Methods inherited from class org.opt4j.core.common.archive.AbstractArchive |
|---|
update, updateWithNondominated |
| Methods inherited from class org.opt4j.core.optimizer.Archive |
|---|
update |
| Methods inherited from class org.opt4j.core.IndividualSet |
|---|
add, addAll, addAll, addListener, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeListener, retainAll, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
equals, hashCode |
| Field Detail |
|---|
protected int capacity
Archive
| Constructor Detail |
|---|
@Inject public BoundedArchive(int capacity)
capacity - Capacity of this archive| Method Detail |
|---|
public void setCapacity(int capacity)
BoundedArchive.
capacity - new capacity of this bounded archivegetCapacity()public int getCapacity()
BoundedArchive.
setCapacity(int)public boolean addCheckedIndividual(Individual individual)
ArchiveIndividual to this Archive without further
checks. Must be used only if the Individual is checked to be
Pareto-dominant and, according to possible archive size restrictions, can
be added to this Archive.
addCheckedIndividual in class Archiveindividual - the individual to be actually added to the archive
java.lang.IndexOutOfBoundsException - if the capacity is reached.public boolean addCheckedIndividuals(java.util.Collection<? extends Individual> c)
ArchiveIndividuals to this Archive without further
checks. Must be used only if the Individuals are checked to be
Pareto-dominant and, according to possible archive size restrictions, can
all be added to this Archive.
addCheckedIndividuals in class Archivec - the individuals to be actually added to the archive
java.lang.IndexOutOfBoundsException - if the capacity is reached.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||