Class EAFExample

java.lang.Object
org.tweetyproject.arg.bipolar.examples.EAFExample

public class EAFExample extends Object
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 Details

    • EAFExample

      public EAFExample()
      Default constructor for the EAFExample class. Initializes an instance of this class. This constructor does not perform any specific initialization.
  • Method Details

    • main

      public static void main(String[] _args)
      The entry point of the example program. Constructs an EAFTheory instance, adds arguments, support, and attack relationships, and writes the framework to a file.

      The following steps are performed in the main method:

      1. Create an instance of EAFTheory.
      2. Add eight arguments to the framework.
      3. Define support relationships between various sets of arguments.
      4. Define attack relationships between specific arguments.
      5. Print the string representation of the framework to the console.
      6. Write the framework to a file named "eaf.txt" using EdgeListWriter.
      Parameters:
      _args - command-line arguments (not used in this example)