public abstract class Quantifier extends FirstOrderConstraint
Collection
of objects.Modifier and Type | Field and Description |
---|---|
protected Collection |
collection
The collection of objects to iterate over.
|
protected FirstOrderConstraint |
constraint
The constraint being quantified.
|
protected Vector |
enclosingQuantificationSettings
A list of the objects stored in the quantification variables of enclosing quantifiers.
|
protected String |
quantificationVariable
The name of the quantification variable.
|
protected QuantifierArgumentReplacer |
replacer
The implementation of the functions that compute any parameters this quantifier may have.
|
Constructor and Description |
---|
Quantifier(String q,
Collection col,
FirstOrderConstraint con)
Initializing constructor.
|
Quantifier(String q,
Collection col,
FirstOrderConstraint con,
QuantifierArgumentReplacer qar)
This constructor specifies a variable setter for when this quantifier is itself quantified.
|
Modifier and Type | Method and Description |
---|---|
void |
consolidateVariables(AbstractMap m)
Sets the variable map object stored in this object to the given argument; also instantiates
all quantified variables and stores them in the map.
|
boolean |
equals(Object o)
Two
Quantifier s are equivalent when their children are equivalent. |
Constraint[] |
getChildren()
Returns the children of this constraint in an array.
|
int |
hashCode()
The hash code of a
Quantifier is the sum of the hash codes of its children plus
three. |
protected int |
initialize()
Makes sure that the
enclosingQuantificationSettings vector exists, then adds a
place holder for this quantifier's quantification variable setting. |
propositionalize, setQuantificationVariables
evaluate, runVisit
protected String quantificationVariable
protected Collection collection
protected FirstOrderConstraint constraint
protected Vector enclosingQuantificationSettings
protected QuantifierArgumentReplacer replacer
public Quantifier(String q, Collection col, FirstOrderConstraint con)
q
- The name of the quantification variable.col
- The collection of objects to iterate over.con
- The constraint being quantified.public Quantifier(String q, Collection col, FirstOrderConstraint con, QuantifierArgumentReplacer qar)
q
- The name of the quantification variable.col
- The collection of objects to iterate over.con
- The constraint being quantified.qar
- The variable setter.public Constraint[] getChildren()
getChildren
in class Constraint
protected int initialize()
enclosingQuantificationSettings
vector exists, then adds a
place holder for this quantifier's quantification variable setting.public void consolidateVariables(AbstractMap m)
consolidateVariables
in class Constraint
m
- The map in which to find unique copies of the variables.public int hashCode()
Quantifier
is the sum of the hash codes of its children plus
three.Copyright © 2016. All rights reserved.