Class WeightedApxWriter
java.lang.Object
org.tweetyproject.arg.weighted.writer.WeightedApxWriter
* 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(WeightedArgumentationFramework waf, File f) Writes the weighted argumentation framework to a file.void
write
(WeightedArgumentationFramework waf, File f, int precision) Writes the weighted argumentation framework to a file.void
write
(WeightedArgumentationFramework waf, File f, int precision, Boolean convertToNumericWeight) Writes the weighted argumentation framework to a file with the specified precision.void
write
(WeightedArgumentationFramework waf, File f, Boolean convertToNumericWeight) Writes the weighted argumentation framework to a file.
-
Constructor Details
-
WeightedApxWriter
public WeightedApxWriter()Default
-
-
Method Details
-
write
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
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.
-