pga
Class GAMigrator

java.lang.Object
  |
  +--pga.GAMigrator

public class GAMigrator
extends java.lang.Object

Trida predstavujici migrujici jedince mezi populacemi u PGA


Field Summary
protected  GAGenome[] migrants
          Migrujici jedinci
protected  int size
          Pocet migrujicich jedincu
 
Constructor Summary
GAMigrator(int n)
          Konstruktor
 
Method Summary
 void chooseMigrants(GAPopulation pop)
          Zvoli a zkopiruje migrujici jedince z dane populace
 void insertMigrants(GAPopulation pop)
          Zaradi migrujici jedince do dane populace
 void resize(int newSize)
          Zmeni velikost pametoveho mista vyhrazeneho pro migrujici jedince
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size
Pocet migrujicich jedincu

migrants

protected GAGenome[] migrants
Migrujici jedinci
Constructor Detail

GAMigrator

public GAMigrator(int n)
Konstruktor
Method Detail

resize

public void resize(int newSize)
Zmeni velikost pametoveho mista vyhrazeneho pro migrujici jedince

chooseMigrants

public void chooseMigrants(GAPopulation pop)
Zvoli a zkopiruje migrujici jedince z dane populace

Parameters:
pop - Populace, ze ktere se jedinci voli

insertMigrants

public void insertMigrants(GAPopulation pop)
Zaradi migrujici jedince do dane populace

Parameters:
pop - Populace, do ktere se jedinci vlozi