antsim.genie
Interface GeneticExperiment

All Superinterfaces:
Clearable, Experiment

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.

Version:
$Revision: 1.2 $
Author:
Alberto Montresor

Field Summary
 
Fields inherited from interface antsim.Experiment
NAME
 
Method Summary
 void addGeneticCode(GeneticCode code)
          Set the genetic code to be evaluated.
 double getFitness()
          Return the evaluated fitness.
 
Methods inherited from interface antsim.Experiment
evaluate
 
Methods inherited from interface anthill.util.Clearable
clear
 

Method Detail

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.