net.sourceforge.cilib.coevolution.selection
Class SelectAllOpponentSelectionStrategy
java.lang.Object
net.sourceforge.cilib.coevolution.selection.OpponentSelectionStrategy
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectAllOpponentSelectionStrategy
public SelectAllOpponentSelectionStrategy()
SelectAllOpponentSelectionStrategy
public SelectAllOpponentSelectionStrategy(SelectAllOpponentSelectionStrategy copy)
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.