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 TypeMethodDescriptionvoid
void
delete()
protected abstract void
doReplaceVariable
(PVariable obsolete, PVariable replacement) All variables affected by this constraint.getBody()
A (preferably minimal) cover of known functional dependencies between variables.int
Returns an integer ID that is guaranteed to increase strictly monotonously for constraints within a pBody.For backwards compatibility.void
replaceVariable
(PVariable obsolete, PVariable replacement) toString()
protected abstract String
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:PConstraint
All variables affected by this constraint.- Specified by:
getAffectedVariables
in interfacePConstraint
-
getFunctionalDependencies
Description copied from interface:PConstraint
A (preferably minimal) cover of known functional dependencies between variables.- Specified by:
getFunctionalDependencies
in interfacePConstraint
- Returns:
- non-trivial functional dependencies in the form of {variables} --> {variables}, where dependencies with the same lhs are unified.
-
replaceVariable
- Specified by:
replaceVariable
in interfacePConstraint
-
doReplaceVariable
-
delete
public void delete()- Specified by:
delete
in interfacePConstraint
-
checkSanity
public void checkSanity()- Specified by:
checkSanity
in interfacePConstraint
-
getPSystem
For backwards compatibility. Equivalent togetBody()
-
getBody
- Specified by:
getBody
in interfacePConstraint
- Returns:
- the query body this constraint belongs to
- Since:
- 2.1
-
getMonotonousID
public int getMonotonousID()Description copied from interface:PConstraint
Returns an integer ID that is guaranteed to increase strictly monotonously for constraints within a pBody.- Specified by:
getMonotonousID
in interfacePConstraint
-