Class EAFExample
java.lang.Object
org.tweetyproject.arg.bipolar.examples.EAFExample
Provides an example of constructing an Argumentation Framework (EAFTheory) and saving its representation to a file.
This example demonstrates the creation of an argumentation framework with eight arguments, setting up various support and attack relationships between these arguments, and finally writing the resulting framework to a file.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EAFExample
public EAFExample()Default constructor for theEAFExample
class. Initializes an instance of this class. This constructor does not perform any specific initialization.
-
-
Method Details
-
main
The entry point of the example program. Constructs anEAFTheory
instance, adds arguments, support, and attack relationships, and writes the framework to a file.The following steps are performed in the main method:
- Create an instance of
EAFTheory
. - Add eight arguments to the framework.
- Define support relationships between various sets of arguments.
- Define attack relationships between specific arguments.
- Print the string representation of the framework to the console.
- Write the framework to a file named "eaf.txt" using
EdgeListWriter
.
- Parameters:
_args
- command-line arguments (not used in this example)
- Create an instance of
-