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

net.sourceforge.cilib.measurement.Measurement Maven / Gradle / Ivy

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

import net.sourceforge.cilib.algorithm.Algorithm;
import net.sourceforge.cilib.type.types.Type;
import net.sourceforge.cilib.util.Cloneable;


/**
 * All measurements must implement this interface. The measurement must return
 * the value of what it is measuring given the algorithm that it is measuring.
 *
 * @param  The return {@code Type}.
 */
public interface Measurement extends Cloneable {

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

    /**
     * Gets the value of the measurement. The representation of the measurement will be based
     * on the domain string defined.
     *
     * @param algorithm The algorithm to obtain the measurement from.
     * @return The Type representing the value of the measurement.
     */
    E getValue(Algorithm algorithm);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy