Class Tautology
- java.lang.Object
-
- org.tweetyproject.logics.pl.syntax.PlFormula
-
- org.tweetyproject.logics.pl.syntax.SpecialFormula
-
- org.tweetyproject.logics.pl.syntax.Tautology
-
- All Implemented Interfaces:
Formula,ClassicalFormula,Conjunctable,Disjunctable,Invertable,ProbabilityAware,SimpleLogicalFormula
public class Tautology extends SpecialFormula
A tautological formula.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description Tautology()Creates a new tautology.
-
Method Summary
Modifier and Type Method Description Tautologyclone()Creates a deep copy of this formulabooleanequals(java.lang.Object other)java.util.Set<PossibleWorld>getModels(PlSignature sig)Returns the set of models of this formula wrt.inthashCode()java.lang.StringtoString()-
Methods inherited from class org.tweetyproject.logics.pl.syntax.SpecialFormula
collapseAssociativeFormulas, getAtoms, getLiterals, getPredicates, numberOfOccurrences, replace, toCnf, toNnf, trim
-
Methods inherited from class org.tweetyproject.logics.pl.syntax.PlFormula
combineWithAnd, combineWithOr, complement, getModels, getPredicateCls, getPrimeImplicants, getSignature, getUniformProbability, isClause, isConjunctiveClause, isLiteral, resolvableWith, resolveWith, toBlakeCanonicalForm, toDnf
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equalsin interfaceSimpleLogicalFormula- Specified by:
equalsin classPlFormula
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceSimpleLogicalFormula- Specified by:
hashCodein classPlFormula
-
clone
public Tautology clone()
Description copied from interface:SimpleLogicalFormulaCreates a deep copy of this formula- Specified by:
clonein interfaceSimpleLogicalFormula- Specified by:
clonein classPlFormula- Returns:
- the cloned formula
-
getModels
public java.util.Set<PossibleWorld> getModels(PlSignature sig)
Description copied from class:PlFormulaReturns the set of models of this formula wrt. the given signature.
-
-