Class PEEAFTheory
java.lang.Object
org.tweetyproject.arg.bipolar.syntax.PEEAFTheory
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassArgument is a class, that is used for PEEAFTheoryclassAttack is a class, that is used for PEEAFTheoryclassElement is the parent of PEEAFTheory.Argument, PEEAFTheory.Support and PEEAFTheory.Attackstatic classThe exception occurs when the element requested is not found.static classHelper class for displaying associated exceptions' occurrencestatic classThe exception occurs when the argument requested is not found.classSupport is a class, that is used for PEEAFTheory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgument(String identifier, String textContent) Creates an argument with identifier and textContent and adds the argumentvoidAdds attack from the identifier of an argument to the identifier of the argument, support or attack.voidaddSupport(String identifier, String[] fromIdentifiers, String toIdentifier, double probability) Adds support to PEEAF with from identifiers of arguments and to the identifier of the targeted argumentcheckAndGetArgument(String identifier) Get the argument with the identifierGet the insert ordered list of arguments.Get the insert ordered list of attacks.Get the insert ordered list of supports.voidPrint the PEEAF for debugging purposes.
-
Constructor Details
-
PEEAFTheory
public PEEAFTheory()Default constructor that initializes an empty PEEAFTheory
-
-
Method Details
-
addArgument
-
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 attackfromIdentifier- the identifier of argument that originate the attacktoIdentifier- the identifier of the targeted argumentprobability- 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 supportfromIdentifiers- the identifiers of arguments that originate the supporttoIdentifier- the identifier of the targeted argumentprobability- the uncertainty regarding the support link (must be in range [0.0, 1.0])
-
checkAndGetArgument
Get the argument with the identifier- Parameters:
identifier- an argument's identifier- Returns:
- the argument
-
getArguments
Get the insert ordered list of arguments.- Returns:
- array list of the arguments
-
getSupports
Get the insert ordered list of supports.- Returns:
- array list of the supports
-
getAttacks
Get the insert ordered list of attacks.- Returns:
- array list of the attacks
-
prettyPrint
public void prettyPrint()Print the PEEAF for debugging purposes.
-