Uses of Class
org.tweetyproject.lp.asp.syntax.ASPBodyElement
Packages that use ASPBodyElement
-
Uses of ASPBodyElement in org.tweetyproject.lp.asp.parser
Methods in org.tweetyproject.lp.asp.parser that return ASPBodyElementMethods in org.tweetyproject.lp.asp.parser that return types with arguments of type ASPBodyElementModifier and TypeMethodDescriptionInstantiateVisitor.visit(ASTBodyList node, Object data) InstantiateVisitor.visit(ASTNAFLiteralList node, Object data) -
Uses of ASPBodyElement in org.tweetyproject.lp.asp.syntax
Subclasses of ASPBodyElement in org.tweetyproject.lp.asp.syntaxModifier and TypeClassDescriptionclassThis class represents an aggregate.classThis class models an atom, which is a basic structure for building literals and rules for logic programs.classThis class defines common functionality for literals, meaning atoms or strictly negated atoms.classThis class represents a comparative atom, meaning an expression of the form 't x u' where t,u are terms and x is in {<, <=, ==, !=, >, >=}.classThis class represents a default negated literal, i.e.classThis class represents an optimization statement.classThis class models the strict negation of an atom (as opposed to a default negation:DefaultNegation).Methods in org.tweetyproject.lp.asp.syntax that return ASPBodyElementModifier and TypeMethodDescriptionComparativeAtom.clone()DefaultNegation.getLiteral()Return the default negated literalabstract ASPBodyElementASPBodyElement.substitute(Term<?> t, Term<?> v) DefaultNegation.substitute(Term<?> t, Term<?> v) Methods in org.tweetyproject.lp.asp.syntax that return types with arguments of type ASPBodyElementModifier 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.Methods in org.tweetyproject.lp.asp.syntax with parameters of type ASPBodyElementModifier and TypeMethodDescriptionvoidASPRule.addBody(ASPBodyElement premise) Add the given body element to this rule.voidASPRule.addPremise(ASPBodyElement premise) voidASPRule.setBody(ASPBodyElement... aspBodyElements) Set this rule's body to the given ASPBodyElements.voidDefaultNegation.setLiteral(ASPBodyElement literal) Set the default negated literal.Method parameters in org.tweetyproject.lp.asp.syntax with type arguments of type ASPBodyElementModifier and TypeMethodDescriptionvoidASPRule.addBodyElements(Collection<? extends ASPBodyElement> premises) Add the given body elements to this rule.voidASPRule.addPremises(Collection<? extends ASPBodyElement> premises) voidOptimizationElement.setOptLiterals(List<ASPBodyElement> literals) Sets the literals tuple of this optimization element.voidAggregateElement.setRight(List<ASPBodyElement> literals) Sets the literal tuple of this aggregate element.Constructors in org.tweetyproject.lp.asp.syntax with parameters of type ASPBodyElementModifierConstructorDescriptionAggregateElement(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.Constructor parameters in org.tweetyproject.lp.asp.syntax with type arguments of type ASPBodyElementModifierConstructorDescriptionAggregateAtom(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.