Package tools.refinery.logic.literal
Class AggregationLiteral<R,T>
java.lang.Object
tools.refinery.logic.literal.AbstractLiteral
tools.refinery.logic.literal.AbstractCallLiteral
tools.refinery.logic.literal.AggregationLiteral<R,T>
- All Implemented Interfaces:
Literal
-
Constructor Summary
ConstructorsConstructorDescriptionAggregationLiteral(DataVariable<R> resultVariable, Aggregator<R, T> aggregator, DataVariable<T> inputVariable, Constraint target, List<Variable> arguments) -
Method Summary
Modifier and TypeMethodDescriptionprotected LiteraldoSubstitute(Substitution substitution, List<Variable> substitutedArguments) booleanequalsWithSubstitution(LiteralEqualityHelper helper, Literal other) Aggregator<R, T> getInputVariables(Set<? extends Variable> positiveVariablesInClause) intreduce()toString()withArguments(Constraint newTarget, List<Variable> newArguments) Methods inherited from class tools.refinery.logic.literal.AbstractCallLiteral
getArguments, getArgumentsOfDirection, getPrivateVariables, getTarget, substitute, withTargetMethods inherited from class tools.refinery.logic.literal.AbstractLiteral
equals, hashCode
-
Constructor Details
-
AggregationLiteral
public AggregationLiteral(DataVariable<R> resultVariable, Aggregator<R, T> aggregator, DataVariable<T> inputVariable, Constraint target, List<Variable> arguments)
-
-
Method Details
-
getResultVariable
-
getInputVariable
-
getAggregator
-
getOutputVariables
-
getInputVariables
- Specified by:
getInputVariablesin interfaceLiteral- Overrides:
getInputVariablesin classAbstractCallLiteral
-
reduce
-
doSubstitute
- Specified by:
doSubstitutein classAbstractCallLiteral
-
withArguments
- Specified by:
withArgumentsin classAbstractCallLiteral
-
equalsWithSubstitution
- Specified by:
equalsWithSubstitutionin interfaceLiteral- Overrides:
equalsWithSubstitutionin classAbstractCallLiteral
-
hashCodeWithSubstitution
- Specified by:
hashCodeWithSubstitutionin interfaceLiteral- Overrides:
hashCodeWithSubstitutionin classAbstractCallLiteral
-
toString
-