Class WeightedApxWriter

java.lang.Object
org.tweetyproject.arg.weighted.writer.WeightedApxWriter

public class WeightedApxWriter extends Object
* Writes an weighted abstract argumentation framework into a file of the APX format including the weight value of each attack. Weights on attacks are specified by the suffix :- followed by the weight value.
Author:
Sandra Hoffmann
  • Constructor Details

    • WeightedApxWriter

      public WeightedApxWriter()
      Default
  • Method Details

    • write

      public void write(WeightedArgumentationFramework waf, File f) throws IOException
      Writes the weighted argumentation framework to a file.
      Parameters:
      waf - The WeightedArgumentationFramework to write.
      f - The File where the framework should be written.
      Throws:
      IOException - If an I/O error occurs while writing to the file.
    • write

      public void write(WeightedArgumentationFramework waf, File f, int precision) throws IOException
      Writes the weighted argumentation framework to a file.
      Parameters:
      waf - The WeightedArgumentationFramework to write.
      f - The File where the framework should be written.
      precision - The precision for formatting floating-point numbers. Use -1 to retain the original value.
      Throws:
      IOException - If an I/O error occurs while writing to the file.
    • write

      public void write(WeightedArgumentationFramework waf, File f, Boolean convertToNumericWeight) throws IOException
      Writes the weighted argumentation framework to a file.
      Parameters:
      waf - The WeightedArgumentationFramework to write.
      f - The File where the framework should be written.
      convertToNumericWeight - Convert non numeric values to their assigned double values.
      Throws:
      IOException - If an I/O error occurs while writing to the file.
    • write

      public void write(WeightedArgumentationFramework waf, File f, int precision, Boolean convertToNumericWeight) throws IOException
      Writes the weighted argumentation framework to a file with the specified precision.
      Parameters:
      waf - The WeightedArgumentationFramework to write.
      f - The File where the framework should be written.
      precision - The precision for formatting floating-point numbers. Use -1 to retain the original value.
      convertToNumericWeight - Convert non numeric values to their assigned double values.
      Throws:
      IOException - If an I/O error occurs while writing to the file.