net.sourceforge.cilib.coevolution.selection
Class SelectAllOpponentSelectionStrategy

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

public class SelectAllOpponentSelectionStrategy
extends OpponentSelectionStrategy

example of implementation of an OpponentSelectionStrategy, selects all the opponents in the pool

Author:
Julien Duhain, leo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.coevolution.selection.OpponentSelectionStrategy
ownPopulationID, selectFromOwnPopulation
 
Constructor Summary
SelectAllOpponentSelectionStrategy()
           
SelectAllOpponentSelectionStrategy(SelectAllOpponentSelectionStrategy copy)
           
 
Method Summary
 SelectAllOpponentSelectionStrategy getClone()
          Create a cloned copy of the current object and return it.
 CoevolutionCompetitorList selectCompetitors(CoevolutionCompetitorList pool)
          Select opponents from the pool
 
Methods inherited from class net.sourceforge.cilib.coevolution.selection.OpponentSelectionStrategy
addPoolSelectionStrategy, clearPoolSelectionStrategies, setCompetitors, setOwnPopulationID, setSelectFromOwnPopulation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectAllOpponentSelectionStrategy

public SelectAllOpponentSelectionStrategy()

SelectAllOpponentSelectionStrategy

public SelectAllOpponentSelectionStrategy(SelectAllOpponentSelectionStrategy copy)
Method Detail

getClone

public SelectAllOpponentSelectionStrategy 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 OpponentSelectionStrategy
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

selectCompetitors

public CoevolutionCompetitorList selectCompetitors(CoevolutionCompetitorList pool)
Select opponents from the pool

Specified by:
selectCompetitors in class OpponentSelectionStrategy
Parameters:
pool - the pool of potential opponents
Returns:
the selected opponents


Copyright © 2009 CIRG. All Rights Reserved.