Package tools.refinery.logic.term
Class AggregationTerm<R,T>
java.lang.Object
tools.refinery.logic.term.AbstractTerm<R>
tools.refinery.logic.term.AbstractCallTerm<R>
tools.refinery.logic.term.AggregationTerm<R,T>
-
Constructor Summary
ConstructorsConstructorDescriptionAggregationTerm(Aggregator<R, T> aggregator, DataVariable<T> inputVariable, Constraint target, List<Variable> arguments) -
Method Summary
Modifier and TypeMethodDescriptiondoSubstitute(Substitution substitution, List<Variable> substitutedArguments) booleanequalsWithSubstitution(LiteralEqualityHelper helper, AnyTerm other) Aggregator<R, T> getInputVariables(Set<? extends Variable> positiveVariablesInClause) intreduce()toString()withArguments(Constraint newTarget, List<Variable> newArguments) Methods inherited from class tools.refinery.logic.term.AbstractCallTerm
evaluate, getArguments, getArgumentsOfDirection, getPrivateVariables, getTarget, getVariables, rewriteSubTerms, substitute, withTargetMethods inherited from class tools.refinery.logic.term.AbstractTerm
equals, getType, hashCode
-
Constructor Details
-
AggregationTerm
public AggregationTerm(Aggregator<R, T> aggregator, DataVariable<T> inputVariable, Constraint target, List<Variable> arguments)
-
-
Method Details
-
getInputVariable
-
getAggregator
-
doSubstitute
- Specified by:
doSubstitutein classAbstractCallTerm<R>
-
withArguments
- Specified by:
withArgumentsin classAbstractCallTerm<R>
-
reduce
-
getInputVariables
- Specified by:
getInputVariablesin interfaceAnyTerm- Overrides:
getInputVariablesin classAbstractCallTerm<R>
-
equalsWithSubstitution
- Specified by:
equalsWithSubstitutionin interfaceAnyTerm- Overrides:
equalsWithSubstitutionin classAbstractCallTerm<R>
-
hashCodeWithSubstitution
- Specified by:
hashCodeWithSubstitutionin interfaceAnyTerm- Overrides:
hashCodeWithSubstitutionin classAbstractCallTerm<R>
-
toString
-