Class QbfExample
java.lang.Object
org.tweetyproject.logics.qbf.examples.QbfExample
Some general examples for quantified boolean formulas and for parsers and
writers.
- Author:
- Anna Gessler
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
QbfExample
public QbfExample()Default
-
-
Method Details
-
main
Demonstrates the use of the TweetyProject library for working with various types of belief sets and parsers, including propositional logic, QBF (Quantified Boolean Formulas), QDIMACS, and QCir formats. The method performs the following tasks: 1. Creates a propositional logic belief set and adds formulas to it. 2. Uses the TweetyProject QBF parser to read a belief set from a file. 3. Uses the QDIMACS parser to read and parse QDIMACS-formatted belief sets and outputs. 4. Uses the QDIMACS writer to print a belief set in QDIMACS format. 5. Uses the QCir parser to read QCir-formatted belief sets and print them.- Parameters:
args
- Command-line arguments (not used in this example).- Throws:
ParserException
- If an error occurs during parsing.IOException
- If an error occurs during file I/O operations.
-