DistributedEvolutionaryAlgorithmsFramework
Class Topology

java.lang.Object
  extended by DistributedEvolutionaryAlgorithmsFramework.Topology
Direct Known Subclasses:
Topologies.Const1, Topologies.Random, Topologies.Ring, Topologies.Ring_1_2

public abstract class Topology
extends java.lang.Object

Abstract class for island topologies


Field Summary
protected  int islandsNumber
          Number of islands
 
Constructor Summary
Topology(int islands)
           
 
Method Summary
abstract  int[] get(int n)
          Get array of indexes of island for population to migrate to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

islandsNumber

protected int islandsNumber
Number of islands

Constructor Detail

Topology

public Topology(int islands)
Parameters:
islands - Number of islands
Method Detail

get

public abstract int[] get(int n)
Get array of indexes of island for population to migrate to.

Parameters:
n - index of curtent island
Returns:
array of destination indexes