Class ASPRule

java.lang.Object
org.tweetyproject.lp.asp.syntax.ASPElement
org.tweetyproject.lp.asp.syntax.ASPRule
All Implemented Interfaces:
Comparable<ASPRule>, Formula, Rule<ASPHead,ASPBodyElement>, ComplexLogicalFormula, LogicStructure, SimpleLogicalFormula

public class ASPRule extends ASPElement implements Rule<ASPHead,ASPBodyElement>, Comparable<ASPRule>
This class models a rule in ASP. A rule consists of a head and a body. The head contains 0+ classical atoms and the body contains 0+ literals. Rules with non-empty heads and empty bodies are called facts, rules with empty heads and non-empty bodies are called constraints.
Author:
Anna Gessler, Tim Janus, Thomas Vengels