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 java.lang.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(java.io.Writer writer)
creates new Prover9Writer
-
Method Summary
Modifier and Type Method Description void
close()
Closes the Writer.void
printBase(FolBeliefSet b)
Prints formatted representation of a knowledge base.void
printEquivalence(FolFormula a, FolFormula b)
Prints an Equivalence.void
printQuery(FolFormula query)
Prints formatted representation of a query.java.lang.String
toString()
-
-
-
Method Detail
-
printQuery
public void printQuery(FolFormula query) throws java.io.IOException
Description copied from interface:FolWriter
Prints formatted representation of a query.- Specified by:
printQuery
in 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:FolWriter
Prints an Equivalence.- Specified by:
printEquivalence
in 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:FolWriter
Prints formatted representation of a knowledge base.
-
close
public void close() throws java.io.IOException
Description copied from interface:FolWriter
Closes the Writer.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-