classifier.gp
Class Exchanger
java.lang.Object
classifier.gp.Exchanger
- public class Exchanger
- extends java.lang.Object
- Version:
- 0.1
- Author:
- Sacchi Matteo, Sassi Federico
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Exchanger
public Exchanger(int id,
int to,
int from,
int count,
SelectionFunction to_select,
SelectionFunction from_select)
- Parameters:
id - identificatorto - identifies the population that receive COUNT indivualsfrom - identifies the population that send COUNT indivualscount - how many indivuals are exchangedto_select - selection function used to select the individuals to be replaced with the exchanged onesfrom_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 exchangeid - identificator
exchange
public void exchange(Population[] pop)
- Execute the exchange
- Parameters:
pop -
toString
public java.lang.String toString()