Class FullyConnectedTopology

java.lang.Object
org.moeaframework.parallel.island.topology.FullyConnectedTopology
All Implemented Interfaces:
Topology

public class FullyConnectedTopology extends Object implements Topology
A fully-connected or "star" topology where each island is connected to every other island.
  • Constructor Details

    • FullyConnectedTopology

      public FullyConnectedTopology()
      Constructs a fully-connected topology instance.
  • Method Details

    • getNeighbors

      public List<Island> getNeighbors(Island current, List<Island> allIslands)
      Description copied from interface: Topology
      Returns the neighboring islands for the current island.
      Specified by:
      getNeighbors in interface Topology
      Parameters:
      current - the current island
      allIslands - the list of all islands
      Returns:
      the neighboring islands