org.dbe.eve.fff.impl
Class FFSimpleImplementation

java.lang.Object
  extended by 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

Field Summary
(package private)  FitnessFunctionContext context
           
(package private)  SBVRDescription description
           
 
Constructor Summary
FFSimpleImplementation()
           
 
Method Summary
 Fitness evaluate(Solution solution)
          Evaluate the fitness function with the indicated solution.
 SBVRDescription getDescription()
           
 void init(SBVRDescription description, FitnessFunctionContext context)
          Init this fitness funcion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

FitnessFunctionContext context

description

SBVRDescription description
Constructor Detail

FFSimpleImplementation

public FFSimpleImplementation()
Method Detail

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 counterpart
context - 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.