|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.entity.Topologies
public final class Topologies
Topology related utilities.
Method Summary | ||
---|---|---|
static
|
getNeighbourhoodBestEntities(Topology<T> topology)
Obtain the best entity from each neighbourhood and return them. |
|
static
|
getNeighbourhoodBestEntities(Topology<T> topology,
Comparator<T> comparator)
Gather the best entity of each neighbourhood (in this Topology ) in a
Set (duplicates are not allowed) and return them. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T extends Entity> Set<T> getNeighbourhoodBestEntities(Topology<T> topology)
T
- The Entity
type.topology
- The topology to query.
Set
of neighbourhood best entities.public static <T extends Entity> Set<T> getNeighbourhoodBestEntities(Topology<T> topology, Comparator<T> comparator)
Topology
) in a
Set
(duplicates are not allowed) and return them. A single Entity
may
dominate in more than one neighbourhood, but we just want unique entities.
T
- The entity type.topology
- The topology to query.comparator
- The comparator to use.
Set
cosisting of the best entity of each neighbourhood in the
topology
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |