classifier.gp
Class Exchanger

java.lang.Object
  extended byclassifier.gp.Exchanger

public class Exchanger
extends java.lang.Object

Version:
0.1
Author:
Sacchi Matteo, Sassi Federico

Constructor Summary
  Exchanger(int id, int to, int from, int count, SelectionFunction to_select, SelectionFunction from_select)
           
protected Exchanger(java.util.Properties p, int id)
           
 
Method Summary
 void exchange(Population[] pop)
          Execute the exchange
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Exchanger

public Exchanger(int id,
                 int to,
                 int from,
                 int count,
                 SelectionFunction to_select,
                 SelectionFunction from_select)
Parameters:
id - identificator
to - identifies the population that receive COUNT indivuals
from - identifies the population that send COUNT indivuals
count - how many indivuals are exchanged
to_select - selection function used to select the individuals to be replaced with the exchanged ones
from_select - selection function used to select the individuals to exchange

Exchanger

protected Exchanger(java.util.Properties p,
                    int id)
Parameters:
p - all the parameters to configure the exchange
id - identificator
Method Detail

exchange

public void exchange(Population[] pop)
Execute the exchange

Parameters:
pop -

toString

public java.lang.String toString()