net.sourceforge.cilib.entity.operators.selection
Class SelectionStrategy

java.lang.Object
  extended by net.sourceforge.cilib.entity.operators.selection.SelectionStrategy
All Implemented Interfaces:
Serializable, Operator, Cloneable
Direct Known Subclasses:
CompoundSelection, ElitistSelectionStrategy, RandomSelectionStrategy, RouletteWheelSelectionStrategy, TournamentSelectionStrategy

public abstract class SelectionStrategy
extends Object
implements Operator

Author:
Gary Pampara
See Also:
Serialized Form

Constructor Summary
SelectionStrategy()
           
 
Method Summary
abstract  SelectionStrategy getClone()
          Create a cloned copy of the current object and return it.
abstract
<T extends Entity>
T
select(Topology<T> population)
          Apply the selection strategy and return a single Entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.cilib.entity.operators.Operator
performOperation
 

Constructor Detail

SelectionStrategy

public SelectionStrategy()
Method Detail

getClone

public abstract SelectionStrategy 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 Operator
Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

select

public abstract <T extends Entity> T select(Topology<T> population)
Apply the selection strategy and return a single Entity.

Type Parameters:
T - The Entity type.
Parameters:
population - The Topology to make the selection from.
Returns:
The selected Entity.


Copyright © 2009 CIRG. All Rights Reserved.