public final class TargetFitnessTerminator extends Object implements Predicate<RankedCandidates>
true
when a candidate has been found that fulfils the specified criteria.
Also known as the success predicate.
Constructor and Description |
---|
TargetFitnessTerminator(Predicate<RankedCandidate> targetCriteira)
Creates a predicate which returns the result of evaluating the given criteria with the best candidate of a
RankedCandidates . |
public TargetFitnessTerminator(Predicate<RankedCandidate> targetCriteira)
RankedCandidates
.public boolean test(RankedCandidates t)
test
in interface Predicate<RankedCandidates>
OakGP Genetic Programming Framework