org.dbe.eve.fff.impl
Class FFSimpleImplementation
java.lang.Object
org.dbe.eve.fff.impl.FFSimpleImplementation
- All Implemented Interfaces:
- FitnessFunction
public class FFSimpleImplementation
- extends java.lang.Object
- implements FitnessFunction
- Author:
- Claudius
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
FitnessFunctionContext context
description
SBVRDescription description
FFSimpleImplementation
public FFSimpleImplementation()
init
public void init(SBVRDescription description,
FitnessFunctionContext context)
- Description copied from interface:
FitnessFunction
- 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.
- Specified by:
init
in interface FitnessFunction
- Parameters:
description
- The request that acts as the evaluation counterpartcontext
- The FitnessFunctionContext
evaluate
public Fitness evaluate(Solution solution)
- Description copied from interface:
FitnessFunction
- Evaluate the fitness function with the indicated solution.
- Specified by:
evaluate
in interface FitnessFunction
- Parameters:
solution
- The Solution that should be evaluated
- Returns:
- fitness The calculated fitness value
getDescription
public SBVRDescription getDescription()
- Returns:
- Returns the description.