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

net.sourceforge.cilib.util.selection.weighting.CurrentFitness Maven / Gradle / Ivy

Go to download

A library of composable components enabling simpler Computational Intelligence

The newest version!
/**           __  __
 *    _____ _/ /_/ /_    Computational Intelligence Library (CIlib)
 *   / ___/ / / / __ \   (c) CIRG @ UP
 *  / /__/ / / / /_/ /   http://cilib.net
 *  \___/_/_/_/_.___/
 */
package net.sourceforge.cilib.util.selection.weighting;

import net.sourceforge.cilib.entity.Entity;
import net.sourceforge.cilib.problem.solution.Fitness;

/**
 * Obtain the current fitness of an entity.
 * @param  The entity type.
 */
public class CurrentFitness implements EntityFitness {

    /**
     * {@inheritDoc}
     * Get the current fitness of the Entity.
     */
    @Override
    public Fitness getFitness(E entity) {
        return entity.getFitness();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy