anthill.genie
Interface GeneticExperiment
- All Superinterfaces:
- Clearable, Experiment
- All Known Implementing Classes:
- GeneticExperimentImpl
- public interface GeneticExperiment
- extends Experiment, Clearable
An Experiment is constituted by a collection of Scenario's.
The fitness of one or more genetic codes can evaluated on an
Experiment by evaluating the fitness on each of the Scenario's
constituting it.
addGeneticCode
public void addGeneticCode(GeneticCode code)
- Set the genetic code to be evaluated. Depending on the implementation
of this interface, this method may be invoked more than once, for
example to evaluate the fitness of a collection of genetic codes.
getFitness
public double getFitness()
- Return the evaluated fitness. This operation is separated from
the actual evaluation in order to enable the computation of
fitness values using "resource sharing" techniques.