Class Tournament<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.core.spec.selection.Tournament<T>
- All Implemented Interfaces:
SelectionPolicy
- Direct Known Subclasses:
ImmutableTournament
@Immutable
public abstract class Tournament<T extends Comparable<T>>
extends Object
implements SelectionPolicy
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
static <U extends Comparable<U>>
Tournament<U> of
(int numCandidates) static <U extends Comparable<U>>
Tournament<U> of
(int numCandidates, Comparator<Individual<U>> comparator)
-
Constructor Details
-
Tournament
public Tournament()
-
-
Method Details
-
numCandidates
@Parameter public abstract int numCandidates() -
comparator
-
of
-
of
public static <U extends Comparable<U>> Tournament<U> of(int numCandidates, Comparator<Individual<U>> comparator)
-