Class TimeoutReason
java.lang.Object
soot.jimple.infoflow.memory.reasons.TimeoutReason
- All Implemented Interfaces:
ISolverTerminationReason
Reason for terminating a data flow solver that has run out of time
- Author:
- Steven Arzt
-
Constructor Summary
ConstructorsConstructorDescriptionTimeoutReason(long timeElapsed, long timeout) Creates a new instance of theTimeoutReasonclass -
Method Summary
Modifier and TypeMethodDescriptioncombine(ISolverTerminationReason terminationReason) Combines this termination reason with the given onebooleanlongGets the time that has elapsed so farlongGets the maximum amount of time that the solver was allowed to spend on the taskinthashCode()
-
Constructor Details
-
TimeoutReason
public TimeoutReason(long timeElapsed, long timeout) Creates a new instance of theTimeoutReasonclass- Parameters:
timeElapsed- The time that has elapsed so fartimeout- 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() -
equals
-
combine
Description copied from interface:ISolverTerminationReasonCombines this termination reason with the given one- Specified by:
combinein interfaceISolverTerminationReason- 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
-