Package net.sf.tweety.logics.fol.writer
Class Prover9Writer
- java.lang.Object
-
- net.sf.tweety.logics.fol.writer.Prover9Writer
-
- All Implemented Interfaces:
FolWriter
public class Prover9Writer extends Object implements FolWriter
Prints single first-order logic formulas and full knowledge bases to Prover9 format (https://www.cs.unm.edu/~mccune/mace4/manual/2009-11A/).- Author:
- Nils Geilen
- See Also:
Prover9FolReasoner
-
-
Constructor Summary
Constructors Constructor Description Prover9Writer()creates new Prover9WriterProver9Writer(Writer writer)creates new Prover9Writer
-
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.StringtoString()
-
-
-
Constructor Detail
-
Prover9Writer
public Prover9Writer(Writer writer)
creates new Prover9Writer- Parameters:
writer- output is redirected to this writer
-
Prover9Writer
public Prover9Writer()
creates new Prover9Writer
-
-
Method Detail
-
printQuery
public void printQuery(FolFormula query) throws IOException
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
public void printEquivalence(FolFormula a, FolFormula b) throws 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:
IOException- if an IO issue occurs.
-
printBase
public void printBase(FolBeliefSet b) throws IOException
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
public void close() throws IOExceptionDescription copied from interface:FolWriterCloses the Writer.- Specified by:
closein interfaceFolWriter- Throws:
IOException- if an IO issue occurs.
-
-