Class TypeConstraint
java.lang.Object
tools.refinery.interpreter.matchers.psystem.BasePConstraint
tools.refinery.interpreter.matchers.psystem.EnumerablePConstraint
tools.refinery.interpreter.matchers.psystem.KeyedEnumerablePConstraint<IInputKey>
tools.refinery.interpreter.matchers.psystem.basicenumerables.TypeConstraint
- All Implemented Interfaces:
ITypeConstraint,ITypeInfoProviderConstraint,PConstraint,PTraceable
public class TypeConstraint
extends KeyedEnumerablePConstraint<IInputKey>
implements ITypeConstraint
Represents an enumerable type constraint that asserts that values substituted for the given tuple of variables
form a tuple that belongs to an enumerable extensional relation identified by an
IInputKey.
The InputKey must be enumerable!
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.refinery.interpreter.matchers.psystem.ITypeConstraint
ITypeConstraint.TypeConstraintUtil -
Field Summary
Fields inherited from class tools.refinery.interpreter.matchers.psystem.KeyedEnumerablePConstraint
supplierKeyFields inherited from class tools.refinery.interpreter.matchers.psystem.EnumerablePConstraint
variablesTupleFields inherited from class tools.refinery.interpreter.matchers.psystem.BasePConstraint
pBodyFields inherited from interface tools.refinery.interpreter.matchers.psystem.PConstraint
COMPARE_BY_MONOTONOUS_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoReplaceVariable(PVariable obsolete, PVariable replacement) A (preferably minimal) cover of known functional dependencies between variables.getImpliedJudgements(IQueryMetaContext context) Returns type information implied by this constraint.protected StringMethods inherited from class tools.refinery.interpreter.matchers.psystem.KeyedEnumerablePConstraint
getSupplierKey, toStringRestRestMethods inherited from class tools.refinery.interpreter.matchers.psystem.EnumerablePConstraint
getDeducedVariables, getVariableInTuple, getVariablesTuple, toStringRestMethods inherited from class tools.refinery.interpreter.matchers.psystem.BasePConstraint
checkSanity, delete, getAffectedVariables, getBody, getMonotonousID, getPSystem, replaceVariable, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.interpreter.matchers.psystem.PConstraint
checkSanity, delete, getAffectedVariables, getBody, getDeducedVariables, getMonotonousID, replaceVariable
-
Constructor Details
-
TypeConstraint
-
-
Method Details
-
keyToString
- Specified by:
keyToStringin classKeyedEnumerablePConstraint<IInputKey>
-
getEquivalentJudgement
- Specified by:
getEquivalentJudgementin interfaceITypeConstraint
-
getImpliedJudgements
Description copied from interface:ITypeInfoProviderConstraintReturns type information implied by this constraint.- Specified by:
getImpliedJudgementsin interfaceITypeInfoProviderConstraint
-
getFunctionalDependencies
Description copied from interface:PConstraintA (preferably minimal) cover of known functional dependencies between variables.- Specified by:
getFunctionalDependenciesin interfacePConstraint- Overrides:
getFunctionalDependenciesin classBasePConstraint- Returns:
- non-trivial functional dependencies in the form of {variables} --> {variables}, where dependencies with the same lhs are unified.
-
doReplaceVariable
- Overrides:
doReplaceVariablein classEnumerablePConstraint
-