PhenotypeEvaluator<P extends Phenotype<G, R>, G, R extends FitnessResult> class abstract

Implementers

Constructors

PhenotypeEvaluator()

Properties

hashCode int
The hash code for this object.
no setterinherited
printf PrintFunction
Set automatically by GeneticAlgorithm.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userData Object?
getter/setter pair

Methods

destroy() → void
When evaluators need to dispose of resources. By default, this does nothing.
evaluate(P phenotype) Future<R>
Takes the phenotype and returns its fitness score. The lower the fitness score, the better the phenotype. Fitness score of 0.0 means that the phenotype is perfect.
init() Future<void>
When evaluators need some work for initialization. By default, this just returns an immediate Future.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited