public final class SolverResult
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SolverResult.Status
Describes possible statuses of the results produced by a constraint solver.
|
Constructor and Description |
---|
SolverResult(SolverResult.Status status,
java.util.List<java.lang.String> errors,
java.util.List<Variable> variables)
Constructs for a solver result object basing on specified attributes.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getErrors()
Returns the list of errors that occurred during the process of solving a constraint.
|
SolverResult.Status |
getStatus()
Returns the status of the result.
|
java.util.List<Variable> |
getVariables()
Returns the list of variables that store a solution to a constraint.
|
boolean |
hasErrors()
Checks whether any errors were detected during the process of solving a constraint.
|
java.lang.String |
toString() |
public SolverResult(SolverResult.Status status, java.util.List<java.lang.String> errors, java.util.List<Variable> variables)
status
- Status of the result.errors
- List of errors.variables
- List of variables.java.lang.IllegalArgumentException
- if any of the parameters equals null
.public SolverResult.Status getStatus()
public boolean hasErrors()
public java.util.List<java.lang.String> getErrors()
public java.util.List<Variable> getVariables()
public java.lang.String toString()
toString
in class java.lang.Object