es.udc.gii.common.eaf.algorithm.parallel.migration.selection
Class BestMigration

java.lang.Object
  extended by es.udc.gii.common.eaf.algorithm.parallel.migration.selection.BestMigration
All Implemented Interfaces:
MigSelectionStrategy, Configurable

public class BestMigration
extends java.lang.Object
implements MigSelectionStrategy

A selection strategy for selecting the best individuals of the current population for migrating to other islands.

Author:
Rafael Tedin Alvarez

Field Summary
private  int howMany
           
 
Constructor Summary
BestMigration()
          Creates a new instance of BestMigration
BestMigration(int howMany)
          Creates a new instance of BestMigration
 
Method Summary
 void configure(org.apache.commons.configuration.Configuration conf)
           
 int getHowMany()
           
 java.util.List<Individual> getIndividualsForMigration(EvolutionaryAlgorithm algorithm, java.util.List<Individual> individuals)
          Returns th individuals that can migrate to other processes.
 void setHowMany(int howMany)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

howMany

private int howMany
Constructor Detail

BestMigration

public BestMigration()
Creates a new instance of BestMigration


BestMigration

public BestMigration(int howMany)
Creates a new instance of BestMigration

Method Detail

getIndividualsForMigration

public java.util.List<Individual> getIndividualsForMigration(EvolutionaryAlgorithm algorithm,
                                                             java.util.List<Individual> individuals)
Description copied from interface: MigSelectionStrategy
Returns th individuals that can migrate to other processes. If no individuals are chosen an empty list is returned.

Specified by:
getIndividualsForMigration in interface MigSelectionStrategy

configure

public void configure(org.apache.commons.configuration.Configuration conf)
Specified by:
configure in interface Configurable

getHowMany

public int getHowMany()

setHowMany

public void setHowMany(int howMany)