net.sourceforge.cilib.measurement.generic.Iterations Maven / Gradle / Ivy
/** __ __
* _____ _/ /_/ /_ Computational Intelligence Library (CIlib)
* / ___/ / / / __ \ (c) CIRG @ UP
* / /__/ / / / /_/ / http://cilib.net
* \___/_/_/_/_.___/
*/
package net.sourceforge.cilib.measurement.generic;
import net.sourceforge.cilib.algorithm.Algorithm;
import net.sourceforge.cilib.measurement.Measurement;
import net.sourceforge.cilib.type.types.Int;
/**
*
*/
public class Iterations implements Measurement {
private static final long serialVersionUID = -1689111168205874937L;
/**
* {@inheritDoc}
*/
@Override
public Iterations getClone() {
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Int getValue(Algorithm algorithm) {
return Int.valueOf(algorithm.getIterations());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy