public final class SolverResult extends Result<SolverResult.Status,java.util.List<Variable>>
SolverResult
class stores a solution to the specified constraint
including the status of the operation and the list of errors if any occurred.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<Variable> |
getVariables()
Returns the list of variables that store a solution to 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 java.util.List<Variable> getVariables()
public java.lang.String toString()
toString
in class Result<SolverResult.Status,java.util.List<Variable>>