net.sourceforge.cilib.coevolution.selection
Class SelectHOFPoolSelectionStrategy

java.lang.Object
  extended by net.sourceforge.cilib.coevolution.selection.OpponentPoolSelectionStrategy
      extended by net.sourceforge.cilib.coevolution.selection.SelectHOFPoolSelectionStrategy
All Implemented Interfaces:
Serializable, Cloneable

public class SelectHOFPoolSelectionStrategy
extends OpponentPoolSelectionStrategy

Maintains a HOF and adds the HOF Competitors to the pool

Author:
leo
See Also:
Serialized Form

Constructor Summary
SelectHOFPoolSelectionStrategy()
           
SelectHOFPoolSelectionStrategy(SelectHOFPoolSelectionStrategy other)
           
 
Method Summary
 void addToCompetitorPool(CoevolutionCompetitorList pool, List<PopulationBasedAlgorithm> populations)
          Add Competitors to the CoevolutionCompetitorList pool from the sub populations
 SelectHOFPoolSelectionStrategy getClone()
          Create a cloned copy of the current object and return it.
 void setAddToHOFEpoch(int addToHOFEpoch)
           
 void setHOFSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectHOFPoolSelectionStrategy

public SelectHOFPoolSelectionStrategy()

SelectHOFPoolSelectionStrategy

public SelectHOFPoolSelectionStrategy(SelectHOFPoolSelectionStrategy other)
Method Detail

addToCompetitorPool

public void addToCompetitorPool(CoevolutionCompetitorList pool,
                                List<PopulationBasedAlgorithm> populations)
Add Competitors to the CoevolutionCompetitorList pool from the sub populations

Specified by:
addToCompetitorPool in class OpponentPoolSelectionStrategy
Parameters:
pool - the pool of competitors
populations - the list of sub populations

getClone

public SelectHOFPoolSelectionStrategy 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
Specified by:
getClone in class OpponentPoolSelectionStrategy
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

setAddToHOFEpoch

public void setAddToHOFEpoch(int addToHOFEpoch)

setHOFSize

public void setHOFSize(int size)


Copyright © 2009 CIRG. All Rights Reserved.