Class Equality
java.lang.Object
tools.refinery.interpreter.matchers.psystem.BasePConstraint
tools.refinery.interpreter.matchers.psystem.DeferredPConstraint
tools.refinery.interpreter.matchers.psystem.basicdeferred.Equality
- All Implemented Interfaces:
PConstraint
,PTraceable
-
Field Summary
Fields inherited from class tools.refinery.interpreter.matchers.psystem.BasePConstraint
pBody
Fields inherited from interface tools.refinery.interpreter.matchers.psystem.PConstraint
COMPARE_BY_MONOTONOUS_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doReplaceVariable
(PVariable obsolete, PVariable replacement) The set of variables whose potential values can be enumerated (once all non-deduced variables have known values).A (preferably minimal) cover of known functional dependencies between variables.getWho()
boolean
isMoot()
An equality is moot if it compares the a variable with itself.boolean
isReadyAt
(SubPlan plan, IQueryMetaContext context) protected String
Methods inherited from class tools.refinery.interpreter.matchers.psystem.BasePConstraint
checkSanity, delete, getAffectedVariables, getBody, getMonotonousID, getPSystem, replaceVariable, toString
-
Constructor Details
-
Equality
-
-
Method Details
-
isMoot
public boolean isMoot()An equality is moot if it compares the a variable with itself.- Returns:
- true, if the equality is moot
-
doReplaceVariable
- Specified by:
doReplaceVariable
in classBasePConstraint
-
toStringRest
- Specified by:
toStringRest
in classBasePConstraint
-
getWho
-
getWithWhom
-
getDeducedVariables
Description copied from interface:PConstraint
The set of variables whose potential values can be enumerated (once all non-deduced variables have known values). -
getFunctionalDependencies
Description copied from interface:PConstraint
A (preferably minimal) cover of known functional dependencies between variables.- Specified by:
getFunctionalDependencies
in interfacePConstraint
- Overrides:
getFunctionalDependencies
in classBasePConstraint
- Returns:
- non-trivial functional dependencies in the form of {variables} --> {variables}, where dependencies with the same lhs are unified.
-
isReadyAt
- Specified by:
isReadyAt
in classDeferredPConstraint
-