Uses of Enum
org.tweetyproject.lp.asp.syntax.ASPOperator.AggregateFunction
-
Uses of ASPOperator.AggregateFunction in org.tweetyproject.lp.asp.parser
Modifier and TypeMethodDescriptionInstantiateVisitor.evaluateAggrFunc
(String func) Evaluates the given aggregate function string and returns the correspondingASPOperator.AggregateFunction
. -
Uses of ASPOperator.AggregateFunction in org.tweetyproject.lp.asp.syntax
Modifier and TypeMethodDescriptionAggregateAtom.getFunction()
Return the aggregate functionReturns the enum constant of this type with the specified name.static ASPOperator.AggregateFunction[]
ASPOperator.AggregateFunction.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionvoid
AggregateAtom.setFunction
(ASPOperator.AggregateFunction function) Sets the aggregate function.ModifierConstructorDescriptionAggregateAtom
(ASPOperator.AggregateFunction function, List<AggregateElement> elements) Creates a new Aggregate with the given aggregate function and the given aggregate elements.AggregateAtom
(ASPOperator.AggregateFunction function, List<AggregateElement> elements, ASPOperator.BinaryOperator rightRelation, int rightBound) Creates a new Aggregate of the form "#func { elements } op rightBound" with the given aggregate function #func, the given aggregate elements, the given aggregate relation op and the given rightBound.AggregateAtom
(ASPOperator.AggregateFunction function, List<AggregateElement> elements, ASPOperator.BinaryOperator leftRelation, int leftBound, ASPOperator.BinaryOperator rightRelation, int rightBound) Creates a new Aggregate of the form "leftBound op #func { elements } op rightBound" with the given aggregate function, the given aggregate elements, and the given left and right aggregate relations and integer bounds.AggregateAtom
(ASPOperator.AggregateFunction function, List<AggregateElement> elements, ASPOperator.BinaryOperator rightRelation, Term<?> rightBound) Creates a new Aggregate of the form "#func { elements } op rightBound" with the given aggregate function #func, the given aggregate elements, the given aggregate relation op and the given rightBound.AggregateAtom
(ASPOperator.AggregateFunction function, List<AggregateElement> elements, ASPOperator.BinaryOperator leftRelation, Term<?> leftBound, ASPOperator.BinaryOperator rightRelation, Term<?> rightBound) Creates a new Aggregate of the form "leftBound leftOp #func { elements } rightOp rightBound" with the given aggregate function, the given aggregate elements, and the given left and right aggregate relations and bounds.