Class StandardFolWriter
java.lang.Object
org.tweetyproject.logics.fol.writer.StandardFolWriter
- All Implemented Interfaces:
FolWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the Writer.voidPrints formatted representation of a knowledge base.voidPrints an Equivalence.voidprintQuery(FolFormula query) Prints formatted representation of a query.
-
Constructor Details
-
StandardFolWriter
Creates new writer- Parameters:
writer- output is redirected to this writer
-
StandardFolWriter
public StandardFolWriter()Creates new writer
-
-
Method Details
-
printQuery
Description copied from interface:FolWriterPrints formatted representation of a query.- Specified by:
printQueryin interfaceFolWriter- Parameters:
query- the formula to be queried- Throws:
IOException- if an IO issue occurs.
-
printEquivalence
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:
IOException- if an IO issue occurs.
-
printBase
Description copied from interface:FolWriterPrints formatted representation of a knowledge base.- Specified by:
printBasein interfaceFolWriter- Parameters:
b- a knowledge base- Throws:
IOException- if an IO issue occurs.
-
close
Description copied from interface:FolWriterCloses the Writer.- Specified by:
closein interfaceFolWriter- Throws:
IOException- if an IO issue occurs.
-