Class BasePConstraint
java.lang.Object
tools.refinery.interpreter.matchers.psystem.BasePConstraint
- All Implemented Interfaces:
PConstraint,PTraceable
- Direct Known Subclasses:
DeferredPConstraint,EnumerablePConstraint
-
Field Summary
FieldsFields inherited from interface tools.refinery.interpreter.matchers.psystem.PConstraint
COMPARE_BY_MONOTONOUS_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddelete()protected abstract voiddoReplaceVariable(PVariable obsolete, PVariable replacement) All variables affected by this constraint.getBody()A (preferably minimal) cover of known functional dependencies between variables.intReturns an integer ID that is guaranteed to increase strictly monotonously for constraints within a pBody.For backwards compatibility.voidreplaceVariable(PVariable obsolete, PVariable replacement) toString()protected abstract StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.interpreter.matchers.psystem.PConstraint
getDeducedVariables
-
Field Details
-
pBody
-
-
Constructor Details
-
BasePConstraint
-
-
Method Details
-
toString
-
toStringRest
-
getAffectedVariables
Description copied from interface:PConstraintAll variables affected by this constraint.- Specified by:
getAffectedVariablesin interfacePConstraint
-
getFunctionalDependencies
Description copied from interface:PConstraintA (preferably minimal) cover of known functional dependencies between variables.- Specified by:
getFunctionalDependenciesin interfacePConstraint- Returns:
- non-trivial functional dependencies in the form of {variables} --> {variables}, where dependencies with the same lhs are unified.
-
replaceVariable
- Specified by:
replaceVariablein interfacePConstraint
-
doReplaceVariable
-
delete
public void delete()- Specified by:
deletein interfacePConstraint
-
checkSanity
public void checkSanity()- Specified by:
checkSanityin interfacePConstraint
-
getPSystem
For backwards compatibility. Equivalent togetBody() -
getBody
- Specified by:
getBodyin interfacePConstraint- Returns:
- the query body this constraint belongs to
- Since:
- 2.1
-
getMonotonousID
public int getMonotonousID()Description copied from interface:PConstraintReturns an integer ID that is guaranteed to increase strictly monotonously for constraints within a pBody.- Specified by:
getMonotonousIDin interfacePConstraint
-