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
Modifier and TypeClassDescriptionclass
Argument is a class, that is used for PEEAFTheoryclass
Attack is a class, that is used for PEEAFTheoryclass
Element is the parent of PEEAFTheory.Argument, PEEAFTheory.Support and PEEAFTheory.Attackstatic class
The exception occurs when the element requested is not found.static class
Helper class for displaying associated exceptions' occurrencestatic class
The exception occurs when the argument requested is not found.class
Support is a class, that is used for PEEAFTheory -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgument
(String identifier, String textContent) Creates an argument with identifier and textContent and adds the argumentvoid
Adds attack from the identifier of an argument to the identifier of the argument, support or attack.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 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.void
Print 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.
-