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) boolean
equalsWithSubstitution
(LiteralEqualityHelper helper, AnyTerm other) Aggregator
<R, T> getInputVariables
(Set<? extends Variable> positiveVariablesInClause) int
reduce()
toString()
withArguments
(Constraint newTarget, List<Variable> newArguments) Methods inherited from class tools.refinery.logic.term.AbstractCallTerm
evaluate, getArguments, getArgumentsOfDirection, getPrivateVariables, getTarget, getVariables, rewriteSubTerms, substitute, withTarget
Methods 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:
doSubstitute
in classAbstractCallTerm<R>
-
withArguments
- Specified by:
withArguments
in classAbstractCallTerm<R>
-
reduce
-
getInputVariables
- Specified by:
getInputVariables
in interfaceAnyTerm
- Overrides:
getInputVariables
in classAbstractCallTerm<R>
-
equalsWithSubstitution
- Specified by:
equalsWithSubstitution
in interfaceAnyTerm
- Overrides:
equalsWithSubstitution
in classAbstractCallTerm<R>
-
hashCodeWithSubstitution
- Specified by:
hashCodeWithSubstitution
in interfaceAnyTerm
- Overrides:
hashCodeWithSubstitution
in classAbstractCallTerm<R>
-
toString
-