|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.infer.Constraint
LBJ2.infer.FirstOrderConstraint
LBJ2.infer.Quantifier
public abstract class Quantifier
A quantifier is a first order constraint parameterized by an object taken
from a Java Collection of objects.
| Field Summary | |
|---|---|
protected java.util.Collection |
collection
The collection of objects to iterate over. |
protected FirstOrderConstraint |
constraint
The constraint being quantified. |
protected java.util.Vector |
enclosingQuantificationSettings
A list of the objects stored in the quantification variables of enclosing quantifiers. |
protected java.lang.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 Summary | |
|---|---|
Quantifier(java.lang.String q,
java.util.Collection col,
FirstOrderConstraint con)
Initializing constructor. |
|
Quantifier(java.lang.String q,
java.util.Collection col,
FirstOrderConstraint con,
QuantifierArgumentReplacer qar)
This constructor specifies a variable setter for when this quantifier is itself quantified. |
|
| Method Summary | |
|---|---|
void |
consolidateVariables(java.util.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(java.lang.Object o)
Two Quantifiers 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. |
| Methods inherited from class LBJ2.infer.FirstOrderConstraint |
|---|
propositionalize, setQuantificationVariables |
| Methods inherited from class LBJ2.infer.Constraint |
|---|
evaluate, runVisit |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String quantificationVariable
protected java.util.Collection collection
protected FirstOrderConstraint constraint
protected java.util.Vector enclosingQuantificationSettings
protected QuantifierArgumentReplacer replacer
| Constructor Detail |
|---|
public Quantifier(java.lang.String q,
java.util.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(java.lang.String q,
java.util.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.| Method Detail |
|---|
public Constraint[] getChildren()
getChildren in class Constraintprotected int initialize()
enclosingQuantificationSettings vector
exists, then adds a place holder for this quantifier's quantification
variable setting.
public void consolidateVariables(java.util.AbstractMap m)
consolidateVariables in class Constraintm - 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.
hashCode in class java.lang.ObjectQuantifier.public boolean equals(java.lang.Object o)
Quantifiers are equivalent when their children are
equivalent.
equals in class java.lang.Objecttrue iff the argument is an equivalent
Quantifier.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||