Class SPASSWriter
java.lang.Object
org.tweetyproject.logics.ml.writer.SPASSWriter
This class prints single first-order modal logic formulas and knowledge bases to
 the SPASS format.
 
A SPASS input file consists of the following parts:
- Description: Contains meta-information about the problem, i.e. name, author, satisfiability
 - Symbols: Signature declaration
 - Axioms: a list of formulas
 - Conjectures: a list of formulas
 
- Author:
 - Anna Gessler
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SPASSWriter.SPASSWriter(Writer writer) Creates a new SPASSWriter. - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the underlying writer stream.voidprintProblem(MlBeliefSet kb, RelationalFormula formula) Prints the contents of a SPASS problem file for a given knowledge base and a formula. 
- 
Constructor Details
- 
SPASSWriter
Creates a new SPASSWriter.- Parameters:
 writer- Output is redirected to this writer.
 - 
SPASSWriter
public SPASSWriter()Creates a new SPASSWriter. 
 - 
 - 
Method Details
- 
printProblem
public void printProblem(MlBeliefSet kb, RelationalFormula formula) throws ParserException, IOException Prints the contents of a SPASS problem file for a given knowledge base and a formula.- Parameters:
 kb- a knowledge baseformula- a relational formula- Throws:
 ParserException- if parsing failsIOException- if an IO issue occurs.
 - 
close
Closes the underlying writer stream.If an I/O error occurs while closing the writer, an `IOException` is thrown.
- Throws:
 IOException- if an I/O error occurs while closing the writer.
 
 -