All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.cilib.util.calculator.FitnessCalculator Maven / Gradle / Ivy

/**           __  __
 *    _____ _/ /_/ /_    Computational Intelligence Library (CIlib)
 *   / ___/ / / / __ \   (c) CIRG @ UP
 *  / /__/ / / / /_/ /   http://cilib.net
 *  \___/_/_/_/_.___/
 */
package net.sourceforge.cilib.util.calculator;

import net.sourceforge.cilib.problem.solution.Fitness;
import net.sourceforge.cilib.util.Cloneable;

/**
 * Perform the calculation of the fitness for the given Entity, decoupling the
 * Entity from the Problem.
 * @param  The type to which a fitness calculation is to be performed.
 */
public interface FitnessCalculator extends Cloneable {

    /**
     * {@inheritDoc}
     */
    @Override
    FitnessCalculator getClone();

    /**
     * Get the fitness, given the position.
     * @param entity The Type to base the calculation on.
     * @return A Fitness object representing the fitness of the position.
     */
    Fitness getFitness(T entity);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy