Class TimeoutReason

java.lang.Object
soot.jimple.infoflow.memory.reasons.TimeoutReason
All Implemented Interfaces:
ISolverTerminationReason

public class TimeoutReason extends Object implements ISolverTerminationReason
Reason for terminating a data flow solver that has run out of time
Author:
Steven Arzt
  • Constructor Details

    • TimeoutReason

      public TimeoutReason(long timeElapsed, long timeout)
      Creates a new instance of the TimeoutReason class
      Parameters:
      timeElapsed - The time that has elapsed so far
      timeout - The maximum time that the solver was allowed to spend
  • Method Details

    • getTimeElapsed

      public long getTimeElapsed()
      Gets the time that has elapsed so far
      Returns:
      The time that the solver has spent so far
    • getTimeout

      public long getTimeout()
      Gets the maximum amount of time that the solver was allowed to spend on the task
      Returns:
      The maximum amount of time that the solver was allowed to spend on the task
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • combine

      public ISolverTerminationReason combine(ISolverTerminationReason terminationReason)
      Description copied from interface: ISolverTerminationReason
      Combines this termination reason with the given one
      Specified by:
      combine in interface ISolverTerminationReason
      Parameters:
      terminationReason - The reason to combine this one with
      Returns:
      A combined termination reason that models the current reason as well as the given one, i.e., the fact that the solver was terminated for multiple reasons