Class EasyPEAFExample

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

public class EasyPEAFExample extends Object
Provides an example of constructing a Probabilistic Argumentation Framework (PEAFTheory), adding support relationships, and inducing extensions using a specific inducer.

This example demonstrates the creation of a PEAFTheory instance with two arguments, setting up support relationships with specified probabilities, and then inducing extensions of the framework using the LiExactPEAFInducer.

  • Constructor Details

    • EasyPEAFExample

      public EasyPEAFExample()
      Default Constructor
  • Method Details

    • main

      public static void main(String[] args)
      The entry point of the example program. Constructs a PEAFTheory instance, adds arguments, defines support relationships with associated probabilities, prints the framework, and induces extensions using the LiExactPEAFInducer.

      The following steps are performed in the main method:

      1. Create an instance of PEAFTheory.
      2. Add two arguments to the framework.
      3. Define support relationships between the arguments with specified probabilities.
      4. Print the framework in a human-readable format using AbstractBipolarFramework.prettyPrint().
      5. Induce extensions of the framework using LiExactPEAFInducer and print each induced extension.
      Parameters:
      args - command-line arguments (not used in this example)