public class FolSignature
extends net.sf.tweety.commons.Signature
| Constructor and Description |
|---|
FolSignature()
Creates an empty signature
|
FolSignature(boolean containsEquality)
Creates an empty signature or an otherwise empty signature with equality.
|
FolSignature(Collection<?> c)
Creates a signature with the given objects (should be sorts, constants,
predicates, functors, or formulas).
|
FolSignature(Collection<?> c,
boolean containsEquality)
Creates a signature with the given objects (should be sorts, constants,
predicates, functors, or formulas) and, if desired, equality.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object obj)
Adds the given object, either a constant, a sort, a predicate, or a functor,
to this signature.
|
void |
addAll(Collection<?> c)
Adds items of the given collection to this signature.
|
void |
addSignature(net.sf.tweety.commons.Signature other) |
boolean |
containsConstant(String s) |
boolean |
containsFunctor(String s) |
boolean |
containsPredicate(String s) |
boolean |
containsSort(String s) |
boolean |
equals(Object obj) |
net.sf.tweety.logics.commons.syntax.Constant |
getConstant(String s) |
Set<net.sf.tweety.logics.commons.syntax.Constant> |
getConstants() |
net.sf.tweety.logics.commons.syntax.Functor |
getFunctor(String s) |
Set<net.sf.tweety.logics.commons.syntax.Functor> |
getFunctors() |
net.sf.tweety.logics.commons.syntax.Predicate |
getPredicate(String s) |
Set<net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
net.sf.tweety.logics.commons.syntax.Sort |
getSort(String s) |
Set<net.sf.tweety.logics.commons.syntax.Sort> |
getSorts() |
int |
hashCode() |
boolean |
isOverlappingSignature(net.sf.tweety.commons.Signature other) |
boolean |
isRepresentable(FolFormula folFormula)
Checks whether the given formula can be represented by this signature.
|
boolean |
isSubSignature(net.sf.tweety.commons.Signature other) |
String |
toString()
Returns a string representation of the first-order logic signature.
|
public FolSignature()
public FolSignature(boolean containsEquality)
containsEquality - if true, the equality predicate is added to the signaturepublic FolSignature(Collection<?> c) throws IllegalArgumentException
c - a collection of items to be added.IllegalArgumentException - if at least one of the given objects is
neither a constant, a sort, a predicate, a functor, or a formula.public FolSignature(Collection<?> c, boolean containsEquality) throws IllegalArgumentException
c - a collection of items to be added.containsEquality - if true, the equality predicate is added to the signatureIllegalArgumentException - if at least one of the given objects is
neither a constant, a sort, a predicate, a functor, or a formula.public boolean isSubSignature(net.sf.tweety.commons.Signature other)
isSubSignature in class net.sf.tweety.commons.Signaturepublic boolean isOverlappingSignature(net.sf.tweety.commons.Signature other)
isOverlappingSignature in class net.sf.tweety.commons.Signaturepublic void add(Object obj) throws IllegalArgumentException
obj - the object to be added, either a constant, a sort, a predicate, a functor,
or a formula.IllegalArgumentException - if the given object is neither a constant, a sort, a
predicate, a functor, or a formula.public void addAll(Collection<?> c) throws IllegalArgumentException
c - the collection of items to be addedIllegalArgumentException - if at least one of the given objects is
neither a constant, a sort, a predicate, a functor, or a formula.public boolean isRepresentable(FolFormula folFormula)
folFormula - A formula to be checked.public Set<net.sf.tweety.logics.commons.syntax.Constant> getConstants()
public Set<net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
public Set<net.sf.tweety.logics.commons.syntax.Functor> getFunctors()
public Set<net.sf.tweety.logics.commons.syntax.Sort> getSorts()
public net.sf.tweety.logics.commons.syntax.Constant getConstant(String s)
public net.sf.tweety.logics.commons.syntax.Predicate getPredicate(String s)
public net.sf.tweety.logics.commons.syntax.Functor getFunctor(String s)
public net.sf.tweety.logics.commons.syntax.Sort getSort(String s)
public boolean containsConstant(String s)
public boolean containsPredicate(String s)
public boolean containsFunctor(String s)
public boolean containsSort(String s)
public int hashCode()
hashCode in class net.sf.tweety.commons.Signaturepublic boolean equals(Object obj)
equals in class net.sf.tweety.commons.Signaturepublic void addSignature(net.sf.tweety.commons.Signature other)
addSignature in class net.sf.tweety.commons.SignatureCopyright © 2019. All rights reserved.