public class Equality extends DeferredPConstraint
PConstraint.CompareByMonotonousID
Constructor and Description |
---|
Equality(PBody pBody,
PVariable who,
PVariable withWhom) |
Modifier and Type | Method and Description |
---|---|
void |
doReplaceVariable(PVariable obsolete,
PVariable replacement) |
java.util.Set<PVariable> |
getDeducedVariables()
The set of variables whose potential values can be enumerated (once all non-deduced variables have known values).
|
java.util.Map<java.util.Set<PVariable>,java.util.Set<PVariable>> |
getFunctionalDependencies(IQueryMetaContext context)
A (preferably minimal) cover of known functional dependencies between variables.
|
PVariable |
getWho() |
PVariable |
getWithWhom() |
boolean |
isMoot()
An equality is moot if it compares the a variable with itself.
|
boolean |
isReadyAt(SubPlan plan,
IQueryMetaContext context) |
checkSanity, delete, getAffectedVariables, getMonotonousID, getPSystem, replaceVariable, toString
public boolean isMoot()
public PVariable getWho()
public PVariable getWithWhom()
public java.util.Set<PVariable> getDeducedVariables()
PConstraint
public java.util.Map<java.util.Set<PVariable>,java.util.Set<PVariable>> getFunctionalDependencies(IQueryMetaContext context)
PConstraint
getFunctionalDependencies
in interface PConstraint
getFunctionalDependencies
in class BasePConstraint
public boolean isReadyAt(SubPlan plan, IQueryMetaContext context)
isReadyAt
in class DeferredPConstraint