eaLib API Docs
Last Modified : January 7 2002

mss.ea.core
Interface IndividualFilter

All Known Implementing Classes:
Reinsertion

public interface IndividualFilter

Interface for classes which are able to filter individual streams.

Since:
0.2
Version:
$Revision: 1.4 $ $Date: 2001/11/23 12:17:38 $
Author:
Andreas Rummler

Method Summary
 boolean filter(Individual i)
          Executes the internal filter on the given individual.
 IndividualStream filter(IndividualStream is)
          Filters the individual stream.
 void setGate(IndividualGate gate)
          Sets a new gate for the filter.
 

Method Detail

filter

public boolean filter(Individual i)
Executes the internal filter on the given individual. This method should check the given individual if it is able to pass the filter. This method could be made protected in the future.
Parameters:
i - individual to check for passing through
Returns:
true if this individual should pass through the filter

filter

public IndividualStream filter(IndividualStream is)
Filters the individual stream. The default behaviour is filtering of the stream by calling filter( Individual ) on each individual. However this behaviour can be changed when inserting streams in populations. In this case the filter should never add individuals to the population. Instead individuals can be removed and individuals to be added have to be put on the filtered stream.
Parameters:
is - individual stream to filter
Returns:
filtered stream

setGate

public void setGate(IndividualGate gate)
Sets a new gate for the filter. This is an optional method in case this filter belongs to an individual gate.
Parameters:
gate - new gate for this filter

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS