public abstract class Archive extends IndividualSet
Archive is used to store a set of high-quality Individual
s. Commonly, these Individuals are non-dominated.| Constructor and Description |
|---|
Archive() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Individual individual)
Deprecated.
|
boolean |
addAll(Collection<? extends Individual> c)
Deprecated.
|
boolean |
addAll(Individual... c)
Deprecated.
|
boolean |
update(Individual individual)
Updates the archive with a single individual.
|
abstract boolean |
update(Set<? extends Individual> individuals)
Updates the archive with a set of individuals.
|
addListener, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeListener, retainAll, size, toArray, toArrayequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, spliteratorparallelStream, removeIf, streampublic boolean update(Individual individual)
individual - the individual that is used to update the archivetrue if the content of the archive changedpublic abstract boolean update(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 changed@Deprecated public final boolean add(Individual individual)
add in interface Collection<Individual>add in interface Set<Individual>add in class IndividualSet@Deprecated public final boolean addAll(Collection<? extends Individual> c)
addAll in interface Collection<Individual>addAll in interface Set<Individual>addAll in class IndividualSet@Deprecated public final boolean addAll(Individual... c)
IndividualSetIndividuals.addAll in class IndividualSetc - the individuals to be added