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

freak.core.stoppingcriterion.AbstractStoppingCriterion Maven / Gradle / Ivy

There is a newer version: 0.4.7
Show newest version
/*
 * 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