Class PEAFTheory
java.lang.Object
org.tweetyproject.commons.BeliefSet<BArgument, DungSignature>
org.tweetyproject.arg.bipolar.syntax.AbstractBipolarFramework
org.tweetyproject.arg.bipolar.syntax.AbstractEAFTheory<WeightedSetSupport>
org.tweetyproject.arg.bipolar.syntax.PEAFTheory
- All Implemented Interfaces:
Iterable<BArgument>,Collection<BArgument>,BeliefBase,GeneralGraph<BArgument>,Graph<BArgument>
- Direct Known Subclasses:
NamedPEAFTheory
This class implements an abstract argumentation theory
in the sense of Probabilistic Evidential Argumentation Frameworks (PrEAF).
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
ConstructorsConstructorDescriptionDefault constructor; initializes an empty PEAFTheoryPEAFTheory(Set<BArgument> noArguments) Optional constructor; initializes an PEAFTheory with arguments -
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 identifiervoidaddAttack(BipolarEntity froms, BipolarEntity tos) Add attack between arguments with indicesvoidaddSupport(Set<BArgument> froms, Set<BArgument> tos, double cp) Add a support with sets for many to many mappingReturns an ascii tree for debug purposes.booleanisAcceptable(BArgument argument, Collection<BArgument> ext) checks whether argument is acceptable wrt.voidHelper function to print the ascii treeMethods inherited from class org.tweetyproject.arg.bipolar.syntax.AbstractEAFTheory
addArgument, addAttack, addAttack, addSupport, getArguments, getArgumentsAsSet, getAttacks, getEta, getNumberOfArguments, getSupports, getSupports, powerSet, toStringMethods inherited from class org.tweetyproject.arg.bipolar.syntax.AbstractBipolarFramework
add, add, add, addAllAttacks, addAllSupports, areAdjacent, existsDirectedPath, faf, getAdjacencyMatrix, getAttacked, getAttackers, getChildren, getComplementGraph, getConnectedComponents, 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
-
PEAFTheory
public PEAFTheory()Default constructor; initializes an empty PEAFTheory -
PEAFTheory
-
-
Method Details
-
addArgument
Add an argument with an integer identifier- Overrides:
addArgumentin classAbstractEAFTheory<WeightedSetSupport>- Parameters:
identifier- the identifier of the argument- Returns:
- EArgument object
-
addSupport
Add a support with sets for many to many mapping- Parameters:
froms- set with arguments that originate the supporttos- set with arguments that receive the supportcp- the result assigned to the support link (must be in range [0.0, 1.0])
-
addAttack
Add attack between arguments with indices- Overrides:
addAttackin classAbstractEAFTheory<WeightedSetSupport>- Parameters:
froms- the index of the EArgument that originates the attacktos- the index of the EArgument that receieves the attack
-
getASCIITree
Returns an ascii tree for debug purposes. This is usually used in the unit tests.- Returns:
- the ascii tree in string
-
printASCIITree
public void printASCIITree()Helper function to print the ascii tree -
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.
-