public class QuantifiedConstraintInvocation extends FirstOrderConstraint
| Modifier and Type | Field and Description |
|---|---|
protected FirstOrderConstraint |
constraint
The latest result of invoking
parameterized. |
protected ParameterizedConstraint |
parameterized
The parameterized constraint that has been invoked.
|
protected InvocationArgumentReplacer |
replacer
The implementation of the function that computes the parameter.
|
| Constructor and Description |
|---|
QuantifiedConstraintInvocation(ParameterizedConstraint p,
InvocationArgumentReplacer iar)
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
QuantifiedConstraintInvocations are equivalent when their children are
equivalent. |
boolean |
evaluate()
If this method is called without first calling
setQuantificationVariables(Vector), false will be returned. |
Constraint[] |
getChildren()
Returns the children of this constraint in an array.
|
int |
hashCode()
The hash code of a
QuantifiedConstraintInvocation is the sum of the hash codes
of its children. |
PropositionalConstraint |
propositionalize()
If this method is called without first calling
setQuantificationVariables(Vector), the constant representing false
will be returned. |
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. |
protected ParameterizedConstraint parameterized
protected InvocationArgumentReplacer replacer
protected FirstOrderConstraint constraint
parameterized.public QuantifiedConstraintInvocation(ParameterizedConstraint p, InvocationArgumentReplacer iar)
p - The invoked constraint.iar - The parameter function implementation.public boolean evaluate()
setQuantificationVariables(Vector), false will be returned.evaluate in class Constraintpublic void consolidateVariables(AbstractMap m)
consolidateVariables in class Constraintm - The map in which to find unique copies of the variables.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 PropositionalConstraint propositionalize()
setQuantificationVariables(Vector), the constant representing false
will be returned.propositionalize in class FirstOrderConstraintpublic int hashCode()
QuantifiedConstraintInvocation is the sum of the hash codes
of its children.public boolean equals(Object o)
QuantifiedConstraintInvocations are equivalent when their children are
equivalent.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.