public abstract class Archive extends IndividualSet
Archive is used to store a set of high-quality Individual
s. Commonly, these Individuals are non-dominated.individuals, listeners| Constructor and Description |
|---|
Archive() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addCheckedIndividual(Individual individual)
Adds the
Individual to this Archive without further
checks. |
protected boolean |
addCheckedIndividuals(java.util.Collection<? extends Individual> individuals)
Adds the
Individuals to this Archive without further
checks. |
boolean |
update(Individual individual)
Updates the archive with a single individual.
|
abstract boolean |
update(java.util.Set<? extends Individual> individuals)
Updates the archive with a set of individuals.
|
add, addAll, addAll, addListener, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeListener, retainAll, size, toArray, toArraypublic boolean update(Individual individual)
individual - the individual that is used to update the archivetrue if the content of the archive changedpublic abstract boolean update(java.util.Set<? extends Individual> individuals)
add
/addAll methods, which are prohibited for the archive (throwing
an UnsupportedOperationException), this method shall be used.individuals - the set of individuals that is used to update the archivetrue if the content of the archive changedprotected boolean addCheckedIndividual(Individual individual)
Individual 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.individual - the individual to be actually added to the archiveprotected boolean addCheckedIndividuals(java.util.Collection<? extends Individual> individuals)
Individuals 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.individuals - the individuals to be actually added to the archive