Package org.optaplanner.core.api.solver
Enum Class SolverStatus
- All Implemented Interfaces:
Serializable
,Comparable<SolverStatus>
,java.lang.constant.Constable
The status of
problem
submitted to the SolverManager
.
Retrieve this status with SolverManager.getSolverStatus(Object)
or SolverJob.getSolverStatus()
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe problem's solving has terminated or the problem was never submitted to theSolverManager
.A solver thread started solving the problem, but hasn't finished yet.No solver thread started solving this problem yet, but sooner or later a solver thread will solve it. -
Method Summary
Modifier and TypeMethodDescriptionstatic SolverStatus
Returns the enum constant of this class with the specified name.static SolverStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOLVING_SCHEDULED
No solver thread started solving this problem yet, but sooner or later a solver thread will solve it.For example, submitting 7 problems to a
SolverManager
with aSolverManagerConfig.getParallelSolverCount()
of 4, puts 3 into this state for non-trivial amount of time.Transitions into
SOLVING_ACTIVE
(orNOT_SOLVING
if it isterminated early
, before it starts). -
SOLVING_ACTIVE
A solver thread started solving the problem, but hasn't finished yet.If CPU resource are scarce and that solver thread is waiting for CPU time, the state doesn't change, it's still considered solving active.
Transitions into
NOT_SOLVING
when terminated. -
NOT_SOLVING
The problem's solving has terminated or the problem was never submitted to theSolverManager
.SolverManager.getSolverStatus(Object)
cannot tell the difference, butSolverJob.getSolverStatus()
can.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-