public class FirstOrderConstant extends FirstOrderConstraint
true or false.| Constructor and Description |
|---|
FirstOrderConstant(boolean v)
Initializing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
equals(Object o)
Two
FirstOrderConstants are equivalent when their constants are equal. |
boolean |
evaluate()
Determines whether the constraint is satisfied.
|
Constraint[] |
getChildren()
Returns the children of this constraint in an array.
|
int |
hashCode()
The hash code of a
FirstOrderConstant is the hash code of the
Boolean object formed from the constant. |
PropositionalConstraint |
propositionalize()
Transforms this first order constraint into a propositional constraint.
|
void |
runVisit(Inference infer)
Calls the appropriate
visit(·) method of the given Inference
for this Constraint, as per the visitor pattern. |
void |
setQuantificationVariables(Vector o)
This method sets the given quantification variables to the given object references and
evaluates the expressions involving those variables in this constraint's
FirstOrderEquality children. |
public FirstOrderConstant(boolean v)
v - The value of this constant.public void setQuantificationVariables(Vector o)
FirstOrderEquality children.setQuantificationVariables in class FirstOrderConstrainto - The new object references for the enclosing quantification variables, in order of
nesting.public Constraint[] getChildren()
getChildren in class Constraintpublic boolean evaluate()
evaluate in class Constraintpublic void consolidateVariables(AbstractMap m)
consolidateVariables in class Constraintm - The map in which to find unique copies of the variables.public PropositionalConstraint propositionalize()
propositionalize in class FirstOrderConstraintpublic int hashCode()
FirstOrderConstant is the hash code of the
Boolean object formed from the constant.public boolean equals(Object o)
FirstOrderConstants are equivalent when their constants are equal.public void runVisit(Inference infer)
visit(·) method of the given Inference
for this Constraint, as per the visitor pattern.runVisit in class Constraintinfer - The inference visiting this constraint.Copyright © 2016. All rights reserved.