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, wait
getDeducedVariables
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<PVariable> getAffectedVariables()
PConstraint
getAffectedVariables
in interface PConstraint
public java.util.Map<java.util.Set<PVariable>,java.util.Set<PVariable>> getFunctionalDependencies(IQueryMetaContext context)
PConstraint
getFunctionalDependencies
in interface PConstraint
public void replaceVariable(PVariable obsolete, PVariable replacement)
replaceVariable
in interface PConstraint
public void delete()
delete
in interface PConstraint
public void checkSanity() throws QueryProcessingException
checkSanity
in interface PConstraint
QueryProcessingException
public PBody getPSystem()
public int getMonotonousID()
PConstraint
getMonotonousID
in interface PConstraint