org.dllearner.core
Interface StoppableLearningAlgorithm

All Superinterfaces:
Component, LearningAlgorithm
All Known Implementing Classes:
AbstractCELA, BruteForceLearner, CELOE, ELLearningAlgorithm, ELLearningAlgorithmDisjunctive, FuzzyCELOE, GP, ISLE, OCEL, RandomGuesser, ROLearner

public interface StoppableLearningAlgorithm
extends LearningAlgorithm

Interface for algorithms, which can be stopped and checked whether they are running. This allows learning algorithms to be run in separate threads or be terminated by the user.

Author:
Jens Lehmann

Method Summary
 boolean isRunning()
          Returns whether the learning algorithm is running.
 void stop()
          Stops the algorithm gracefully.
 
Methods inherited from interface org.dllearner.core.LearningAlgorithm
start
 
Methods inherited from interface org.dllearner.core.Component
init
 

Method Detail

stop

void stop()
Stops the algorithm gracefully. A stopped algorithm cannot be resumed anymore. Use this method for cleanup and freeing memory.


isRunning

boolean isRunning()
Returns whether the learning algorithm is running. Implementation should use a boolean status variable in their implementations of the start and resume methods.

Returns:
True if the algorithm is running, false otherwise.


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann