|
||||||||||
| 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.FirstOrderConstant
public class FirstOrderConstant
A first order constant is either true or false.
| Field Summary | |
|---|---|
private boolean |
constant
The constant value. |
| Constructor Summary | |
|---|---|
FirstOrderConstant(boolean v)
Initializing constructor. |
|
| Method Summary | |
|---|---|
void |
consolidateVariables(java.util.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(java.lang.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(java.util.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean constant
| Constructor Detail |
|---|
public FirstOrderConstant(boolean v)
v - The value of this constant.| Method Detail |
|---|
public void setQuantificationVariables(java.util.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(java.util.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.
hashCode in class java.lang.ObjectFirstOrderConstant.public boolean equals(java.lang.Object o)
FirstOrderConstants are equivalent when their constants
are equal.
equals in class java.lang.Objecttrue iff the argument is a
FirstOrderConstant set to the same value as this
constant.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||