# Uses of Class
edu.uky.ai.csp.kr.Constraint

Packages that use Constraint
Package | Description
--- | ---
edu.uky.ai.csp.kr | Contains the knowledge representation for constraint satisfaction problems that use simple binary equals and not equals constraints.

- ## Uses of Constraint in edu.uky.ai.csp.kr

  Subclasses of Constraint in edu.uky.ai.csp.kr
  Modifier and Type | Class | Description
  --- | --- | ---
  `class` | `EqualsConstraint` | Constrains two variables to have the same value.
  `class` | `NotEqualsConstraint` | Constrains two variables to have different values.

  Fields in edu.uky.ai.csp.kr with type parameters of type Constraint
  Modifier and Type | Field | Description
  --- | --- | ---
  `java.lang.Iterable<Constraint>` | Problem.`constraints` | A set of all the constraints that a solution to this problem must meet

  Methods in edu.uky.ai.csp.kr with parameters of type Constraint
  Modifier and Type | Method | Description
  --- | --- | ---
  `void` | Problem.`addConstraint​(Constraint constraint)` | Adds a new constraint to the problem.
  `boolean` | Solution.`test​(Constraint constraint, java.lang.Object left, java.lang.Object right)` | Given some constraint and two candidate values for the constraint's variables, this method checks if the constraint would be violated by those values.