public interface IMemoryBoundedSolver
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification
Interface that a memory-bounded solver can use to notify listeners of
status changes
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addStatusListener(IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification listener)
Adds a new listener that will be notified of status changes in the solver
|
void |
forceTerminate(ISolverTerminationReason reason)
Forces the solver to terminate its tasks and stop processing new tasks.
|
ISolverTerminationReason |
getTerminationReason()
In case this solver was killed before it could complete its task, this
method returns the reason for the abortion.
|
boolean |
isKilled()
Checks whether this solver was killed before it could complete its tasks
|
boolean |
isTerminated()
Checks whether this solver is terminated, either by forced termination,
or because it has finished all of its work.
|
void |
reset()
Resets the solver to its initial state after it has been forcefully
terminated.
|
void forceTerminate(ISolverTerminationReason reason)
reason - The reason why the solver is terminatedboolean isTerminated()
boolean isKilled()
ISolverTerminationReason getTerminationReason()
void reset()
void addStatusListener(IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification listener)
listener - The listener that will be notified when the status of the
solver changesCopyright © 2022 Fraunhofer SIT. All rights reserved.