|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.infer.Constraint
public abstract class Constraint
A constraint is an expression that is either satisified or unsatisfied by its constituent classifier applications.
| Constructor Summary | |
|---|---|
Constraint()
|
|
| Method Summary | |
|---|---|
abstract 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. |
abstract boolean |
evaluate()
Determines whether the constraint is satisfied. |
abstract Constraint[] |
getChildren()
Returns the children of this constraint in an array. |
abstract void |
runVisit(Inference infer)
Calls the appropriate visit(·) method of the given
Inference for this Constraint, as per the
visitor pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Constraint()
| Method Detail |
|---|
public abstract boolean evaluate()
public abstract void consolidateVariables(java.util.AbstractMap m)
m - The map in which to find unique copies of the variables.public abstract Constraint[] getChildren()
public abstract void runVisit(Inference infer)
visit(·) method of the given
Inference for this Constraint, as per the
visitor pattern.
infer - The inference visiting this constraint.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||