public abstract class Constraint extends Object
| Constructor and Description |
|---|
Constraint() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
consolidateVariables(AbstractMap m)
Replaces all unquantified variables with the unique copy stored as a value of the given map;
also instantiates all quantified variables and stores them in the given map.
|
abstract boolean |
evaluate()
Determines whether the constraint is satisfied.
|
abstract Constraint[] |
getChildren()
Returns the children of this constraint in an array.
|
abstract void |
runVisit(Inference infer)
Calls the appropriate
visit(·) method of the given Inference
for this Constraint, as per the visitor pattern. |
public abstract boolean evaluate()
public abstract void consolidateVariables(AbstractMap m)
m - The map in which to find unique copies of the variables.public abstract Constraint[] getChildren()
public abstract void runVisit(Inference infer)
visit(·) method of the given Inference
for this Constraint, as per the visitor pattern.infer - The inference visiting this constraint.Copyright © 2016. All rights reserved.