Package org.oristool.analyzer.stop
Class IterationsNumberStopCriterion
java.lang.Object
org.oristool.analyzer.stop.IterationsNumberStopCriterion
- All Implemented Interfaces:
AnalyzerObserver,StopCriterion
A stop criterion that stops the analysis after the given number of nodes has
been added.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidnotifyNodeAdded(Succession succession) Notifies the observer that the analyzer has added the child node of the given succession to the graph.booleanstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.oristool.analyzer.AnalyzerObserver
notifySuccessionCreated, notifySuccessionExtracted, notifySuccessionInserted, notifySuccessionPostProcessed, notifySuccessionPreProcessed
-
Constructor Details
-
IterationsNumberStopCriterion
public IterationsNumberStopCriterion(int maxIterationsCount)
-
-
Method Details
-
stop
public boolean stop()- Specified by:
stopin interfaceStopCriterion
-
notifyNodeAdded
Description copied from interface:AnalyzerObserverNotifies the observer that the analyzer has added the child node of the given succession to the graph.- Specified by:
notifyNodeAddedin interfaceAnalyzerObserver- Parameters:
succession- succession added to the graph by the analyzer
-