org.dbe.eve.fff
Interface FitnessFunction

All Known Subinterfaces:
FitnessFunctionAggregator
All Known Implementing Classes:
AnotherFFImpl, DefaultAgregator, FFSimpleImplementation

public interface FitnessFunction

The FitnessFunction is one of the Core-Parts of a Genetic Algorithm. Here, the fitness of a solution created by the GA in relation to the provided request (an SBVRDescription in this very case) can be calculated by implementing the evaluate method.

Author:
bob

Method Summary
 Fitness evaluate(Solution solution)
          Evaluate the fitness function with the indicated solution.
 void init(SBVRDescription description, FitnessFunctionContext context)
          Init this fitness funcion.
 

Method Detail

init

void init(SBVRDescription description,
          FitnessFunctionContext context)
Init this fitness funcion. At this moment, we can get any parameter from the FitnessFunctionContext of store this object in order to get the parameters later, at "evaluation" time. This will depend if we can perform all evaluations taking into account the "global system" progress or not.

Parameters:
description - The request that acts as the evaluation counterpart
context - The FitnessFunctionContext

evaluate

Fitness evaluate(Solution solution)
Evaluate the fitness function with the indicated solution.

Parameters:
solution - The Solution that should be evaluated
Returns:
fitness The calculated fitness value