Package net.sf.tweety.lp.asp.syntax
Class ASPElement
- java.lang.Object
-
- net.sf.tweety.lp.asp.syntax.ASPElement
-
- All Implemented Interfaces:
net.sf.tweety.commons.Formula,net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula,net.sf.tweety.logics.commons.syntax.interfaces.LogicStructure,net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
- Direct Known Subclasses:
AggregateElement,ASPBodyElement,ASPHead,ASPRule
public abstract class ASPElement extends Object implements net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula
This class acts as an abstract base class for elements of ASP rules.- Author:
- Anna Gessler
-
-
Constructor Summary
Constructors Constructor Description ASPElement()
-
Method Summary
Modifier and Type Method Description abstract ASPElementclone()<C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>>
booleancontainsTermsOfType(Class<C> cls)ASPElementexchange(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t)abstract Set<ASPAtom>getAtoms()Class<? extends net.sf.tweety.logics.commons.syntax.Predicate>getPredicateCls()abstract Set<net.sf.tweety.logics.commons.syntax.Predicate>getPredicates()abstract net.sf.tweety.logics.fol.syntax.FolSignaturegetSignature()booleanisGround()booleanisWellFormed()ASPElementsubstitute(Map<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> map)abstract ASPElementsubstitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v)-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getPredicates
public abstract Set<net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
- Specified by:
getPredicatesin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
-
substitute
public abstract ASPElement substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v)
- Specified by:
substitutein interfacenet.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula
-
getSignature
public abstract net.sf.tweety.logics.fol.syntax.FolSignature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula
-
getAtoms
public abstract Set<ASPAtom> getAtoms()
- Specified by:
getAtomsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
-
clone
public abstract ASPElement clone()
-
substitute
public ASPElement substitute(Map<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> map) throws IllegalArgumentException
- Specified by:
substitutein interfacenet.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula- Throws:
IllegalArgumentException
-
exchange
public ASPElement exchange(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) throws IllegalArgumentException
- Specified by:
exchangein interfacenet.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula- Throws:
IllegalArgumentException
-
containsTermsOfType
public <C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> boolean containsTermsOfType(Class<C> cls)
- Specified by:
containsTermsOfTypein interfacenet.sf.tweety.logics.commons.syntax.interfaces.LogicStructure
-
isGround
public boolean isGround()
- Specified by:
isGroundin interfacenet.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula
-
isWellFormed
public boolean isWellFormed()
- Specified by:
isWellFormedin interfacenet.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula
-
getPredicateCls
public Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicateCls()
- Specified by:
getPredicateClsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
-
-