public abstract class BasePConstraint extends java.lang.Object implements PConstraint
PConstraint.CompareByMonotonousID| Constructor and Description |
|---|
BasePConstraint(PBody pBody,
java.util.Set<PVariable> affectedVariables) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSanity() |
void |
delete() |
java.util.Set<PVariable> |
getAffectedVariables()
All variables affected by this constraint.
|
java.util.Map<java.util.Set<PVariable>,java.util.Set<PVariable>> |
getFunctionalDependencies(IQueryMetaContext context)
A (preferably minimal) cover of known functional dependencies between variables.
|
int |
getMonotonousID()
Returns an integer ID that is guaranteed to increase strictly monotonously for constraints within a pBody.
|
PBody |
getPSystem() |
void |
replaceVariable(PVariable obsolete,
PVariable replacement) |
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeducedVariablespublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Set<PVariable> getAffectedVariables()
PConstraintgetAffectedVariables in interface PConstraintpublic java.util.Map<java.util.Set<PVariable>,java.util.Set<PVariable>> getFunctionalDependencies(IQueryMetaContext context)
PConstraintgetFunctionalDependencies in interface PConstraintpublic void replaceVariable(PVariable obsolete, PVariable replacement)
replaceVariable in interface PConstraintpublic void delete()
delete in interface PConstraintpublic void checkSanity()
throws QueryProcessingException
checkSanity in interface PConstraintQueryProcessingExceptionpublic PBody getPSystem()
public int getMonotonousID()
PConstraintgetMonotonousID in interface PConstraint