Class TimeBoundStopCriterion

java.lang.Object
org.oristool.models.tpn.TimeBoundStopCriterion
All Implemented Interfaces:
AnalyzerObserver, StopCriterion

public final class TimeBoundStopCriterion extends Object implements StopCriterion
A global stop criterion.
  • Constructor Details

    • TimeBoundStopCriterion

      public TimeBoundStopCriterion(OmegaBigDecimal timeBound)
  • Method Details

    • stop

      public boolean stop()
      Specified by:
      stop in interface StopCriterion
    • notifySuccessionExtracted

      public void notifySuccessionExtracted(Succession succession)
      Description copied from interface: AnalyzerObserver
      Notifies the observer that the analyzer has extracted the given succession from the policy.
      Specified by:
      notifySuccessionExtracted in interface AnalyzerObserver
      Parameters:
      succession - succession extracted by the analyzer
    • notifySuccessionPreProcessed

      public void notifySuccessionPreProcessed(Succession succession)
      Description copied from interface: AnalyzerObserver
      Notifies the observer that the analyzer has pre-processed the given succession.
      Specified by:
      notifySuccessionPreProcessed in interface AnalyzerObserver
      Parameters:
      succession - succession pre-processed by the analyzer
    • notifyNodeAdded

      public void notifyNodeAdded(Succession succession)
      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 interface AnalyzerObserver
      Parameters:
      succession - succession added to the graph by the analyzer
    • notifySuccessionCreated

      public void notifySuccessionCreated(Succession succession)
      Description copied from interface: AnalyzerObserver
      Notifies the observer that the analyzer has created the given succession after firing one of the events in the extracted succession.
      Specified by:
      notifySuccessionCreated in interface AnalyzerObserver
      Parameters:
      succession - succession created by the analyzer
    • notifySuccessionPostProcessed

      public void notifySuccessionPostProcessed(Succession succession)
      Description copied from interface: AnalyzerObserver
      Notifies the observer that the analyzer has post-processed the given succession.
      Specified by:
      notifySuccessionPostProcessed in interface AnalyzerObserver
      Parameters:
      succession - succession post-processed by the analyzer
    • notifySuccessionInserted

      public void notifySuccessionInserted(Succession succession)
      Description copied from interface: AnalyzerObserver
      Notifies the observer that the analyzer has inserted the given succession into the policy queue.
      Specified by:
      notifySuccessionInserted in interface AnalyzerObserver
      Parameters:
      succession - succession added by the analyzer to the policy queue