Class AggregatorConstraint
java.lang.Object
tools.refinery.interpreter.matchers.psystem.BasePConstraint
tools.refinery.interpreter.matchers.psystem.DeferredPConstraint
tools.refinery.interpreter.matchers.psystem.VariableDeferredPConstraint
tools.refinery.interpreter.matchers.psystem.basicdeferred.PatternCallBasedDeferred
tools.refinery.interpreter.matchers.psystem.basicdeferred.AggregatorConstraint
- All Implemented Interfaces:
IMultiQueryReference, IQueryReference, ITypeInfoProviderConstraint, PConstraint, PTraceable
public class AggregatorConstraint
extends PatternCallBasedDeferred
implements ITypeInfoProviderConstraint
The PSystem representation of an aggregation.
- Since:
- 1.4
-
Field Summary
FieldsFields inherited from class PatternCallBasedDeferred
actualParametersTuple, queryFields inherited from class BasePConstraint
pBodyFields inherited from interface PConstraint
COMPARE_BY_MONOTONOUS_ID -
Constructor Summary
ConstructorsConstructorDescriptionAggregatorConstraint(BoundAggregator aggregator, PBody pBody, Tuple actualParametersTuple, PQuery query, PVariable resultVariable, int aggregatedColumn) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoDoReplaceVariables(PVariable obsolete, PVariable replacement) intThe 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.getImpliedJudgements(IQueryMetaContext context) Returns type information implied by this constraint.protected StringMethods inherited from class PatternCallBasedDeferred
checkSanity, doReplaceVariable, getActualParametersTuple, getDeferringVariables, getReferredQueryMethods inherited from class VariableDeferredPConstraint
isReadyAtMethods inherited from class BasePConstraint
delete, getAffectedVariables, getBody, getMonotonousID, getPSystem, replaceVariable, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IQueryReference
getReferredQueriesMethods inherited from interface PConstraint
checkSanity, delete, getAffectedVariables, getBody, getMonotonousID, replaceVariable
-
Field Details
-
resultVariable
-
aggregatedColumn
protected int aggregatedColumn
-
-
Constructor Details
-
AggregatorConstraint
public AggregatorConstraint(BoundAggregator aggregator, PBody pBody, Tuple actualParametersTuple, PQuery query, PVariable resultVariable, int aggregatedColumn)
-
-
Method Details
-
getAggregatedColumn
public int getAggregatedColumn() -
getAggregator
-
getDeducedVariables
Description copied from interface:PConstraintThe set of variables whose potential values can be enumerated (once all non-deduced variables have known values).- Specified by:
getDeducedVariablesin interfacePConstraint
-
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.
-
doDoReplaceVariables
- Specified by:
doDoReplaceVariablesin classPatternCallBasedDeferred
-
getCandidateQuantifiedVariables
- Specified by:
getCandidateQuantifiedVariablesin classPatternCallBasedDeferred
-
toStringRest
- Specified by:
toStringRestin classBasePConstraint
-
getResultVariable
-
getImpliedJudgements
Description copied from interface:ITypeInfoProviderConstraintReturns type information implied by this constraint.- Specified by:
getImpliedJudgementsin interfaceITypeInfoProviderConstraint
-