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_SIGNATUREFields inherited from interface org.tweetyproject.graphs.Graph
IGNORE_SELFLOOPS, INVERT_SELFLOOPS, REMOVE_SELFLOOPS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds the given attack to this argumentation frameworkbooleanAdds the given support to this argumentation framework.addArgument(int identifier) Add an argument with an integer identifiervoidaddSupport(HashSet<BArgument> froms, HashSet<BArgument> tos) Add a support with index arrays (froms and tos)booleanChecks 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 EAFbooleanisAcceptable(BArgument argument, Collection<BArgument> ext) checks whether argument is acceptable wrt.static EAFTheorynewEAFTheory(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, powerSetMethods 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, removeAllMethods inherited from class org.tweetyproject.commons.BeliefSet
add, addAll, clear, contains, containsAll, equals, getSignature, hashCode, isEmpty, iterator, remove, retainAll, setSignature, size, toArray, toArray, toStringMethods 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:
addArgumentin classAbstractEAFTheory<Support>- Parameters:
identifier- the identifier of the argument- Returns:
- EArgument object
-
addSupport
-
getArguments
Gets arguments of the EAF- Overrides:
getArgumentsin classAbstractEAFTheory<Support>- Returns:
- list of arguments inside the EAF (insert ordered)
-
getSupports
Gets supports of the EAF- Overrides:
getSupportsin classAbstractEAFTheory<Support>- Returns:
- list of supports inside the EAF (insert ordered)
-
getAttacks
Gets attacks of the EAF- Overrides:
getAttacksin 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:
toStringin interfaceBeliefBase- Specified by:
toStringin interfaceGraph<BArgument>- Overrides:
toStringin classAbstractEAFTheory<Support>
-
isAcceptable
Description copied from class:AbstractBipolarFrameworkchecks whether argument is acceptable wrt. ext- Specified by:
isAcceptablein classAbstractBipolarFramework- Parameters:
argument- some argumentext- a set of arguments- Returns:
- "true" if argument is acceptable wrt. ext
-
add
Description copied from class:AbstractBipolarFrameworkAdds the given support to this argumentation framework.- Specified by:
addin classAbstractBipolarFramework- Parameters:
support- a support- Returns:
- "true" if the set of supports has been modified.
-
add
Description copied from class:AbstractBipolarFrameworkAdds the given attack to this argumentation framework- Specified by:
addin classAbstractBipolarFramework- Parameters:
attack- an attack- Returns:
- "true" if the set of attacks has been modified.
-