Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.population
Interface IPopulation

All Superinterfaces:
IIndividualSet, IOperator, IProcessor, java.io.Serializable
All Known Implementing Classes:
AbstractPopulation

public interface IPopulation
extends IIndividualSet, IProcessor

Interface for a population. A population is also a set of individuals therefore this interface extends IIndividualSet. A population differs from a normal set only in some additional methods concerning replacing individuals and setting insertion filters.

Since:
0.4.0
Version:
$Revision: 1.5 $ $Date: 2004/05/26 11:58:12 $
Author:
Andreas Rummler

Method Summary
 IIndividualSet insert(IIndividualSet iset)
          Inserts a set of indidividuals into this population.
 void replace(IIndividual[] indArray, IIndividual[] substArray)
          Replaces an array of individuals with several substitute indviduals.
 void replace(IIndividual ind, IIndividual subst)
          Replaces an individual with a substitute individual.
 void setFilter(IInsertionFilter filter)
          Sets an insertion filter to this population.
 
Methods inherited from interface org.evolvica.core.IIndividualSet
add, add, clear, contains, isEmpty, iterator, remove, remove, size, toArray
 
Methods inherited from interface org.evolvica.engine.IProcessor
process
 
Methods inherited from interface org.evolvica.engine.IOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 

Method Detail

insert

public IIndividualSet insert(IIndividualSet iset)
Inserts a set of indidividuals into this population. The individuals from the given set are inserted with applying the populations's insertion filter. The filter performs the actual insertion procedure and may remove older individuals from the population. The contents of the population are returned.

Parameters:
iset - individual set to be inserted
Returns:
contents of the population after applying the insertion filter

replace

public void replace(IIndividual ind,
                    IIndividual subst)
Replaces an individual with a substitute individual.

Parameters:
ind - individual to be replaced
subst - substitute for the replaced individual

replace

public void replace(IIndividual[] indArray,
                    IIndividual[] substArray)
Replaces an array of individuals with several substitute indviduals.

Parameters:
indArray - array with individuals to be replaced
substArray - array with individual used as substitution

setFilter

public void setFilter(IInsertionFilter filter)
Sets an insertion filter to this population.

Parameters:
filter - new insertion filter

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems