gov.nasa.javaGenes.core
Class AntiTournament
java.lang.Object
gov.nasa.javaGenes.core.Tournament
gov.nasa.javaGenes.core.AntiTournament
- All Implemented Interfaces:
- ChooseForDeath, ChooseParents, java.io.Serializable
- Direct Known Subclasses:
- AntiTournamentLocal
- public class AntiTournament
- extends Tournament
- implements ChooseForDeath
assumes that the tournament size is usually quite a bit smaller than the index interval from which the indices are chosen
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AntiTournament
public AntiTournament(int size)
getDeathRowIndex
public int getDeathRowIndex(int[] parentIndices,
Population population)
- Specified by:
getDeathRowIndex
in interface ChooseForDeath
getDeathRowIndex
public int getDeathRowIndex(int[] parentIndices,
IntegerInterval range,
Population population)
- Specified by:
getDeathRowIndex
in interface ChooseForDeath
shouldChooseSecondOne
protected boolean shouldChooseSecondOne(Fitness first,
Fitness second)
- Overrides:
shouldChooseSecondOne
in class Tournament
toString
public java.lang.String toString()
- Overrides:
toString
in class Tournament