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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
notifyNodeAdded
(Succession succession) Notifies the observer that the analyzer has added the child node of the given succession to the graph.boolean
stop()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
stop
in interfaceStopCriterion
-
notifyNodeAdded
Description copied from interface:AnalyzerObserver
Notifies the observer that the analyzer has added the child node of the given succession to the graph.- Specified by:
notifyNodeAdded
in interfaceAnalyzerObserver
- Parameters:
succession
- succession added to the graph by the analyzer
-