Class EAFTheory
java.lang.Object
org.tweetyproject.commons.BeliefSet<BArgument,DungSignature>
org.tweetyproject.arg.bipolar.syntax.AbstractBipolarFramework
org.tweetyproject.arg.bipolar.syntax.AbstractEAFTheory<Support>
org.tweetyproject.arg.bipolar.syntax.EAFTheory
- All Implemented Interfaces:
Iterable<BArgument>
,Collection<BArgument>
,BeliefBase
,GeneralGraph<BArgument>
,Graph<BArgument>
This class implements an abstract argumentation theory in the sense of Evidential Argumentation Frameworks (EAF).
see Li, Hengfei. Probabilistic argumentation. 2015. PhD Thesis. Aberdeen University.
- Author:
- Taha Dogan Gunes
-
Field Summary
Fields inherited from class org.tweetyproject.commons.BeliefSet
EQUALS_USES_SIGNATURE
Fields inherited from interface org.tweetyproject.graphs.Graph
IGNORE_SELFLOOPS, INVERT_SELFLOOPS, REMOVE_SELFLOOPS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds the given attack to this argumentation frameworkboolean
Adds the given support to this argumentation framework.addArgument
(int identifier) Add an argument with an integer identifiervoid
addSupport
(HashSet<BArgument> froms, HashSet<BArgument> tos) Add a support with index arrays (froms and tos)boolean
Checks if a set of arguments whether they are self-supporting or not This is used for conversion from EAF to DAF.This method converts this EAF to a DAF with using Algorithm 1 from Oren et.Gets arguments of the EAFGets attacks of the EAFGets supports of the EAFboolean
isAcceptable
(BArgument argument, Collection<BArgument> ext) checks whether argument is acceptable wrt.static EAFTheory
newEAFTheory
(PEAFTheory peafTheory) Creates a new EAFTheory from an PEAFTheory (the probabilities are eliminated)toString()
Pretty print of the EAFTheoryMethods inherited from class org.tweetyproject.arg.bipolar.syntax.AbstractEAFTheory
addArgument, addAttack, addAttack, addAttack, addSupport, getArgumentsAsSet, getEta, getNumberOfArguments, getSupports, powerSet
Methods inherited from class org.tweetyproject.arg.bipolar.syntax.AbstractBipolarFramework
add, add, add, addAllAttacks, addAllSupports, areAdjacent, existsDirectedPath, faf, getAdjacencyMatrix, getAttacked, getAttackers, getChildren, getComplementGraph, getDirectSupported, getDirectSupporters, getEdge, getEdges, getMinimalSignature, getNeighbors, getNodes, getNumberOfEdges, getNumberOfNodes, getParents, getRestriction, getStronglyConnectedComponents, getSubgraphs, hasSelfLoops, isAttackedBy, isDirectSupportedBy, isWeightedGraph, prettyPrint, remove, remove, remove, removeAll
Methods inherited from class org.tweetyproject.commons.BeliefSet
add, addAll, clear, contains, containsAll, equals, getSignature, hashCode, isEmpty, iterator, remove, retainAll, setSignature, size, toArray, toArray, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
EAFTheory
public EAFTheory()Default constructor; initializes an empty EAFTheory -
EAFTheory
-
-
Method Details
-
newEAFTheory
Creates a new EAFTheory from an PEAFTheory (the probabilities are eliminated)- Parameters:
peafTheory
- PEAFTheory object- Returns:
- a new EAFTheory
-
addArgument
Add an argument with an integer identifier- Overrides:
addArgument
in classAbstractEAFTheory<Support>
- Parameters:
identifier
- the identifier of the argument- Returns:
- EArgument object
-
addSupport
-
getArguments
Gets arguments of the EAF- Overrides:
getArguments
in classAbstractEAFTheory<Support>
- Returns:
- list of arguments inside the EAF (insert ordered)
-
getSupports
Gets supports of the EAF- Overrides:
getSupports
in classAbstractEAFTheory<Support>
- Returns:
- list of supports inside the EAF (insert ordered)
-
getAttacks
Gets attacks of the EAF- Overrides:
getAttacks
in classAbstractEAFTheory<Support>
- Returns:
- list of attacks inside the EAF (insert ordered)
-
convertToDAFNaively
This method converts this EAF to a DAF with using Algorithm 1 from Oren et. al. 2010 "Moving Between Argumentation Frameworks"- Returns:
- DungTheory object
-
checkIsSelfSupporting
Checks if a set of arguments whether they are self-supporting or not This is used for conversion from EAF to DAF. A set of arguments A is self-supporting if and only if for all a in A, A e-supports a- Parameters:
A
- a set of arguments- Returns:
- true if the set of arguments are self-supporting or not.
-
toString
Pretty print of the EAFTheory- Specified by:
toString
in interfaceBeliefBase
- Specified by:
toString
in interfaceGraph<BArgument>
- Overrides:
toString
in classAbstractEAFTheory<Support>
-
isAcceptable
Description copied from class:AbstractBipolarFramework
checks whether argument is acceptable wrt. ext- Specified by:
isAcceptable
in classAbstractBipolarFramework
- Parameters:
argument
- some argumentext
- a set of arguments- Returns:
- "true" if argument is acceptable wrt. ext
-
add
Description copied from class:AbstractBipolarFramework
Adds the given support to this argumentation framework.- Specified by:
add
in classAbstractBipolarFramework
- Parameters:
support
- a support- Returns:
- "true" if the set of supports has been modified.
-
add
Description copied from class:AbstractBipolarFramework
Adds the given attack to this argumentation framework- Specified by:
add
in classAbstractBipolarFramework
- Parameters:
attack
- an attack- Returns:
- "true" if the set of attacks has been modified.
-