Class PEEAFTheory

java.lang.Object
org.tweetyproject.arg.bipolar.syntax.PEEAFTheory

public class PEEAFTheory extends Object
This class implements an abstract argumentation theory in the sense of Probabilistic Extended Evidential Argumentation Frameworks (PrEEAF). see Li, Hengfei. Probabilistic argumentation. 2015. PhD Thesis. Aberdeen University.
Author:
Taha Dogan Gunes
  • Constructor Details

    • PEEAFTheory

      public PEEAFTheory()
      Default constructor that initializes an empty PEEAFTheory
  • Method Details

    • addArgument

      public void addArgument(String identifier, String textContent)
      Creates an argument with identifier and textContent and adds the argument
      Parameters:
      identifier - the identifier of the argument
      textContent - explanation of the argument
    • addAttack

      public void addAttack(String identifier, String fromIdentifier, String toIdentifier, double probability)
      Adds attack from the identifier of an argument to the identifier of the argument, support or attack.
      Parameters:
      identifier - the name of the attack
      fromIdentifier - the identifier of argument that originate the attack
      toIdentifier - the identifier of the targeted argument
      probability - the uncertainty regarding the attack link (must be in range [0.0, 1.0])
    • addSupport

      public void addSupport(String identifier, String[] fromIdentifiers, String toIdentifier, double probability)
      Adds support to PEEAF with from identifiers of arguments and to the identifier of the targeted argument
      Parameters:
      identifier - the identifier for the support
      fromIdentifiers - the identifiers of arguments that originate the support
      toIdentifier - the identifier of the targeted argument
      probability - the uncertainty regarding the support link (must be in range [0.0, 1.0])
    • checkAndGetArgument

      public PEEAFTheory.Argument checkAndGetArgument(String identifier)
      Get the argument with the identifier
      Parameters:
      identifier - an argument's identifier
      Returns:
      the argument
    • getArguments

      public ArrayList<PEEAFTheory.Argument> getArguments()
      Get the insert ordered list of arguments.
      Returns:
      array list of the arguments
    • getSupports

      public ArrayList<PEEAFTheory.Support> getSupports()
      Get the insert ordered list of supports.
      Returns:
      array list of the supports
    • getAttacks

      public ArrayList<PEEAFTheory.Attack> getAttacks()
      Get the insert ordered list of attacks.
      Returns:
      array list of the attacks
    • prettyPrint

      public void prettyPrint()
      Print the PEEAF for debugging purposes.