public class TimeoutReason extends Object implements ISolverTerminationReason
| 构造器和说明 |
|---|
TimeoutReason(long timeElapsed,
long timeout)
Creates a new instance of the
TimeoutReason class |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 ISolverTerminationReasonterminationReason - The reason to combine this one withCopyright © 2022 Fraunhofer SIT. All rights reserved.