Class AbstractEafWriter
java.lang.Object
org.tweetyproject.arg.eaf.writer.AbstractEafWriter
- Direct Known Subclasses:
EafApxWriter
,EafCnfWriter
,EafTgfWriter
Abstract base class for writing EpistemicArgumentationFramework (EAF) instances
to different file formats.
Subclasses must implement the write method for specific formats.
This class also provides a static factory method to retrieve a suitable writer
for a given file format.
Supported formats include:
- TGF - Trivial Graph Format
- APX - Argumentation Interchange Format (used by ASPARTIX)
- CNF - Conjunctive Normal Form (logic-based encoding)
Author: Sandra Hoffmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractEafWriter
Returns an AbstractEafWriter instance for the specified file format.abstract void
write
(EpistemicArgumentationFramework eaf, File f) Writes the given epistemic argumentation framework to the specified file.
-
Constructor Details
-
AbstractEafWriter
public AbstractEafWriter()Standard constructor.
-
-
Method Details
-
getWriter
Returns an AbstractEafWriter instance for the specified file format.- Parameters:
f
- the desired file format- Returns:
- a writer for the format, or null if the format is not supported
-
write
Writes the given epistemic argumentation framework to the specified file. If the file already exists, it will be overwritten.- Parameters:
eaf
- the epistemic argumentation framework to be writtenf
- the file to write to- Throws:
IOException
- if an error occurs during file writing
-