Interface IMemoryBoundedSolver

All Known Subinterfaces:
IAbstractionPathBuilder
All Known Implementing Classes:
AbstractAbstractionPathBuilder, BatchPathBuilder, ConcurrentAbstractionPathBuilder, ContextInsensitivePathBuilder, ContextInsensitiveSourceFinder, ContextSensitivePathBuilder, DefaultPathBuilderFactory.RepeatableContextSensitivePathBuilder, DefaultPathBuilderFactory.ShutdownBatchPathBuilder, EmptyPathBuilder, FlowInsensitiveSolver, IFDSSolver, IFDSSolver, IFDSSolver, InfoflowSolver, InfoflowSolver, InfoflowSolver, InfoflowSolver, RecursivePathBuilder, SparseInfoflowSolver

public interface IMemoryBoundedSolver
Interface that exposes special functions only required by FlowDroid's memory management components
Author:
Steven Arzt
  • Method Details

    • forceTerminate

      void forceTerminate(ISolverTerminationReason reason)
      Forces the solver to terminate its tasks and stop processing new tasks. This will kill the solver.
      Parameters:
      reason - The reason why the solver is terminated
    • isTerminated

      boolean isTerminated()
      Checks whether this solver is terminated, either by forced termination, or because it has finished all of its work.
      Returns:
      True if this solver is terminated, otherwise false
    • isKilled

      boolean isKilled()
      Checks whether this solver was killed before it could complete its tasks
      Returns:
      True if this solver was killed before it could complete its tasks, otherwise false
    • getTerminationReason

      ISolverTerminationReason getTerminationReason()
      In case this solver was killed before it could complete its task, this method returns the reason for the abortion. Otherwise, this method returns null.
      Returns:
      The reason for the abortion in case the solver was killed, otherwise null
    • reset

      void reset()
      Resets the solver to its initial state after it has been forcefully terminated. After calling this method, the solver is expected to accept new tasks.
    • addStatusListener

      Adds a new listener that will be notified of status changes in the solver
      Parameters:
      listener - The listener that will be notified when the status of the solver changes