net.sourceforge.cilib.util.selection.recipes
Interface SelectionRecipe<E>

Type Parameters:
E - The selection type.
All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
ElitistSelection, RandomSelection, RankBasedSelection, RingBasedPopulationSelection, RouletteWheelSelection, TournamentSelection

public interface SelectionRecipe<E>
extends Cloneable

A recipe is a series of steps that need to be followed to achieve a selection.

Author:
Wiehann Matthysen

Method Summary
 SelectionRecipe<E> getClone()
          Create a cloned copy of the current object and return it.
 E select(List<? extends E> elements)
          Perform the selection process.
 

Method Detail

getClone

SelectionRecipe<E> getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

select

E select(List<? extends E> elements)
Perform the selection process.

Parameters:
elements - The elements to perfrom the selection on.
Returns:
The selected element.


Copyright © 2009 CIRG. All Rights Reserved.