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

net.sourceforge.cilib.algorithm.ProgressEvent 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.algorithm;

/**
 * A progress event informs the listening party about the percentage complete of the simulation.
 *
 */
public class ProgressEvent {

    /**
     * Creates a new instance of ProgressEvent with a given completion percentage.
     * @param percentage The current percentage value.
     */
    public ProgressEvent(double percentage) {
        this.percentage = percentage;
    }

    /**
     * Accessor for the percentage completed.
     * @return The percentage
     */
    public double getPercentage() {
        return percentage;
    }

    private double percentage;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy