Uses of Class
org.tweetyproject.lp.asp.syntax.ASPBodyElement
-
Uses of ASPBodyElement in org.tweetyproject.lp.asp.parser
Modifier and TypeMethodDescriptionInstantiateVisitor.visit
(ASTBodyList node, Object data) InstantiateVisitor.visit
(ASTNAFLiteralList node, Object data) -
Uses of ASPBodyElement in org.tweetyproject.lp.asp.syntax
Modifier and TypeClassDescriptionclass
This class represents an aggregate.class
This class models an atom, which is a basic structure for building literals and rules for logic programs.class
This class defines common functionality for literals, meaning atoms or strictly negated atoms.class
This class represents a comparative atom, meaning an expression of the form 't x u' where t,u are terms and x is in {<, <=, ==, !=, >, >=}.class
This class represents a default negated literal, i.e.class
This class represents an optimization statement.class
This class models the strict negation of an atom (as opposed to a default negation:DefaultNegation
).Modifier and TypeMethodDescriptionComparativeAtom.clone()
DefaultNegation.getLiteral()
Return the default negated literalabstract ASPBodyElement
ASPBodyElement.substitute
(Term<?> t, Term<?> v) DefaultNegation.substitute
(Term<?> t, Term<?> v) Modifier and TypeMethodDescriptionASPRule.getBody()
Return the body of this ruleOptimizationElement.getOptLiterals()
Return the literals tuple of this optimization element.ASPRule.getPremise()
AggregateElement.getRight()
Returns the right part (the literals tuple) of the Aggregate element.Modifier and TypeMethodDescriptionvoid
ASPRule.addBody
(ASPBodyElement premise) Add the given body element to this rule.void
ASPRule.addPremise
(ASPBodyElement premise) void
ASPRule.setBody
(ASPBodyElement... aspBodyElements) Set this rule's body to the given ASPBodyElements.void
DefaultNegation.setLiteral
(ASPBodyElement literal) Set the default negated literal.Modifier and TypeMethodDescriptionvoid
ASPRule.addBodyElements
(Collection<? extends ASPBodyElement> premises) Add the given body elements to this rule.void
ASPRule.addPremises
(Collection<? extends ASPBodyElement> premises) void
OptimizationElement.setOptLiterals
(List<ASPBodyElement> literals) Sets the literals tuple of this optimization element.void
AggregateElement.setRight
(List<ASPBodyElement> literals) Sets the literal tuple of this aggregate element.ModifierConstructorDescriptionAggregateElement
(Term<?> term, ASPBodyElement literal) Creates a new Aggregate Element with the given single term and the given single literal.AggregateElement
(Term<?> term, ASPBodyElement... literals) Creates a new Aggregate Element with the given single term and the given naf literals.ASPRule
(ASPHead head, ASPBodyElement b) Creates a rule with the given head and a single-element body.ASPRule
(ASPLiteral head, ASPBodyElement b) Creates a rule with the given head and a single-element body.Creates new default negation with the given literal.OptimizationElement
(Term<?> weight, Term<?> term, ASPBodyElement literal) Creates a new optimization element with the given single weight, term and literal.OptimizationElement
(Term<?> term, ASPBodyElement literal) Creates a new optimization element with the given single term and literal.ModifierConstructorDescriptionAggregateAtom
(List<ASPBodyElement> literals, int leftBound, int rightBound) Creates a new cardinality rule, meaning an aggregate of the form "leftBound <= #count { elements } <= rightBound" with the given literals and the given integer bounds.AggregateElement
(Term<?> term, List<ASPBodyElement> literals) Creates a new Aggregate Element with the given single term and the given list of naf literals.AggregateHead
(List<ASPBodyElement> literals, int leftBound, int rightBound) Creates a new cardinality rule head.ASPRule
(List<ASPBodyElement> body) Creates a constraint with the given body.Creates a weak constraint with the given weight and terms.Creates a weak constraint with the given weight, level (priority) and terms.ASPRule
(ASPHead head, List<ASPBodyElement> body) Creates a rule with the given head and body.ASPRule
(ASPLiteral head, List<ASPBodyElement> body) Creates a rule with the given head and body.ChoiceElement
(ASPLiteral atom, List<ASPBodyElement> elements) Create a new choice element with the given atom and list of literals.