
freak.core.stoppingcriterion.AbstractStoppingCriterion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freak-core Show documentation
Show all versions of freak-core Show documentation
Core library of the Free Evolutionary Algorithm Toolkit
/*
* This file is part of FrEAK. For licensing and copyright information
* please see the file COPYING in the root directory of this
* distribution or contact .
*/
package freak.core.stoppingcriterion;
import freak.core.control.*;
import freak.core.modulesupport.*;
/**
* This class represents an abstract stopping criterion. Some default
* implementations of methods in the interface Module
are given.
*
* @author Heiko, Stefan
*/
public abstract class AbstractStoppingCriterion extends AbstractModule implements StoppingCriterion {
public AbstractStoppingCriterion(ScheduleInterface schedule) {
super(schedule);
}
/**
* This method can be called by subclasses in order to stop the run.
*/
protected void stopRun() {
schedule.triggerStopCriterion();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy