Class FolBeliefSet
java.lang.Object
org.tweetyproject.commons.BeliefSet<FolFormula,FolSignature>
org.tweetyproject.logics.fol.syntax.FolBeliefSet
- All Implemented Interfaces:
Iterable<FolFormula>
,Collection<FolFormula>
,BeliefBase
This class models a first-order knowledge base, i.e. a set of formulas
in first-order logic.
- Author:
- Matthias Thimm
-
Field Summary
Fields inherited from class org.tweetyproject.commons.BeliefSet
EQUALS_USES_SIGNATURE
-
Constructor Summary
ConstructorDescriptionCreates a new and empty first-order knowledge base.FolBeliefSet
(Collection<FolFormula> formulas) Creates a new first-order knowledge base with the given set of formulas. -
Method Summary
Modifier and TypeMethodDescriptionReturns the signature of the language of this knowledge base.Methods inherited from class org.tweetyproject.commons.BeliefSet
add, add, addAll, clear, contains, containsAll, equals, getSignature, hashCode, isEmpty, iterator, remove, removeAll, retainAll, setSignature, size, toArray, toArray, toString, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
FolBeliefSet
public FolBeliefSet()Creates a new and empty first-order knowledge base. -
FolBeliefSet
Creates a new first-order knowledge base with the given set of formulas.- Parameters:
formulas
- the formulas
-
-
Method Details
-
getMinimalSignature
Description copied from interface:BeliefBase
Returns the signature of the language of this knowledge base.- Returns:
- the signature of the language of this knowledge base.
-