public class TimeoutReason extends Object implements ISolverTerminationReason
| Constructor and Description |
|---|
TimeoutReason(long timeElapsed,
long timeout)
Creates a new instance of the
TimeoutReason class |
| Modifier and Type | Method and Description |
|---|---|
ISolverTerminationReason |
combine(ISolverTerminationReason terminationReason)
Combines this termination reason with the given one
|
boolean |
equals(Object obj) |
long |
getTimeElapsed()
Gets the time that has elapsed so far
|
long |
getTimeout()
Gets the maximum amount of time that the solver was allowed to spend on the
task
|
int |
hashCode() |
public TimeoutReason(long timeElapsed,
long timeout)
TimeoutReason classtimeElapsed - The time that has elapsed so fartimeout - The maximum time that the solver was allowed to spendpublic long getTimeElapsed()
public long getTimeout()
public ISolverTerminationReason combine(ISolverTerminationReason terminationReason)
ISolverTerminationReasoncombine in interface ISolverTerminationReasonterminationReason - The reason to combine this one withCopyright © 2021 Fraunhofer SIT. All rights reserved.