Class TPTPWriter
- java.lang.Object
-
- org.tweetyproject.logics.fol.writer.TPTPWriter
-
- All Implemented Interfaces:
FolWriter
public class TPTPWriter extends java.lang.Object implements FolWriter
Prints single first-order logic formulas and full knowledge bases to TPTP format.- Author:
- Nils Geilen, Anna Gessler
- See Also:
EFOLReasoner
-
-
Constructor Summary
Constructors Constructor Description TPTPWriter()Creates new TPTPWriterTPTPWriter(java.io.Writer writer)Creates new TPTPWriter
-
Method Summary
Modifier and Type Method Description voidclose()Closes the Writer.voidprintBase(FolBeliefSet b)Prints formatted representation of a knowledge base.voidprintEquivalence(FolFormula a, FolFormula b)Prints an Equivalence.voidprintQuery(FolFormula query)Prints formatted representation of a query.java.lang.StringtoString()
-
-
-
Method Detail
-
printQuery
public void printQuery(FolFormula query) throws java.io.IOException
Description copied from interface:FolWriterPrints formatted representation of a query.- Specified by:
printQueryin interfaceFolWriter- Parameters:
query- the formula to be queried- Throws:
java.io.IOException- if an IO issue occurs.
-
printEquivalence
public void printEquivalence(FolFormula a, FolFormula b) throws java.io.IOException
Description copied from interface:FolWriterPrints an Equivalence.- Specified by:
printEquivalencein interfaceFolWriter- Parameters:
a- formula on one side of the equationb- formula on the other side of the equation- Throws:
java.io.IOException- if an IO issue occurs.
-
printBase
public void printBase(FolBeliefSet b) throws java.io.IOException
Description copied from interface:FolWriterPrints formatted representation of a knowledge base.
-
close
public void close() throws java.io.IOExceptionDescription copied from interface:FolWriterCloses the Writer.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-