Class AbstractCafWriter

java.lang.Object
org.tweetyproject.arg.caf.writer.AbstractCafWriter
Direct Known Subclasses:
CafApxWriter, CafCnfWriter, CafTgfWriter

public abstract class AbstractCafWriter extends Object
Author:
Sandra Hoffmann
  • Constructor Details

    • AbstractCafWriter

      public AbstractCafWriter()
      standard constructor
  • Method Details

    • getWriter

      public static AbstractCafWriter getWriter(FileFormat f)
      Retrieves the writer for the given file format.
      Parameters:
      f - some file format
      Returns:
      a writer or null if the format is not supported.
    • write

      public abstract void write(ConstrainedArgumentationFramework caf, File f) throws IOException
      Writes the given file into an abstract argumentation framework
      Parameters:
      caf - an abstract argumentation framework
      f - the file that will be overwritten.
      Throws:
      IOException - for all errors concerning file reading/writing.