Package net.sf.tweety.arg.prob.syntax
Class ProbabilisticArgumentationFramework
- java.lang.Object
- 
- net.sf.tweety.commons.BeliefSet<Argument,DungSignature>
- 
- net.sf.tweety.arg.dung.syntax.DungTheory
- 
- net.sf.tweety.arg.prob.syntax.ProbabilisticArgumentationFramework
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<DungTheory>,- java.lang.Iterable<Argument>,- java.util.Collection<Argument>,- BeliefBase,- Graph<Argument>
 
 public class ProbabilisticArgumentationFramework extends DungTheory This class implements the probabilistic argumentation framework approach of [Li, Oren, Norman. Probabilistic Argumentation Frameworks. TAFA'2011].- Author:
- Matthias Thimm
 
- 
- 
Field Summary- 
Fields inherited from class net.sf.tweety.commons.BeliefSetEQUALS_USES_SIGNATURE
 - 
Fields inherited from interface net.sf.tweety.graphs.GraphIGNORE_SELFLOOPS, INVERT_SELFLOOPS, REMOVE_SELFLOOPS
 
- 
 - 
Constructor SummaryConstructors Constructor Description ProbabilisticArgumentationFramework()Default constructor; initializes empty sets of arguments and attacksProbabilisticArgumentationFramework(Graph<Argument> graph)Creates a new PAF from the given graph, all arguments and attacks have probability 1.
 - 
Method SummaryModifier and Type Method Description booleanadd(Argument a)Adds the given node to this graph.booleanadd(Argument a, Probability p)Adds the given argument with the given probabilitybooleanadd(Attack att)Adds the given attack to this dung theory.booleanadd(Attack att, Probability p)Adds the given attack with the given probabilityProbabilitygetProbability(Argument a)Returns the probability of the given argument.ProbabilitygetProbability(Attack a)Returns the probability of the given attack.ProbabilitygetProbability(DungTheory aaf)Computes the probability of the given AAF wrt.SubgraphProbabilityFunctiongetSubgraphProbabilityFunction()Returns the complete subgraph probability function on the subgraphs of this PAF, assuming independence between probabilities of all arguments and attacks.booleanisWeightedGraph()Checks whether this graph only contains weighted edges.booleanremove(Argument a)Removes the argument and all its attacksbooleanremove(Attack attack)Removes the given attack from this Dung theory.DungTheorysample()Samples a random DungTheory from this framework wrt.java.lang.StringtoString()- 
Methods inherited from class net.sf.tweety.arg.dung.syntax.DungTheoryadd, add, add, addAllAttacks, addAttack, areAdjacent, compareTo, contains, containsAll, containsAttack, containsCycle, equals, existsDirectedPath, faf, getAdjacencyMatrix, getAttacked, getAttackers, getAttacks, getChildren, getComplementGraph, getComponents, getEdge, getEdges, getInducedSubgraphs, getMinimalSignature, getNeighbors, getNodes, getNumberOfNodes, getParents, getRestriction, getStronglyConnectedComponents, getSubgraphs, hasAttackBranch, hasDefenseBranch, hashCode, hasSelfLoops, isAttackBranch, isAttacked, isAttacked, isAttackedBy, isAttackedBy, isAttackingAllOtherArguments, isCoherent, isDefenseBranch, isIndirectAttack, isRelativelyCoherent, isStable, isSupport, isWellFounded, prettyPrint, removeAll
 - 
Methods inherited from class net.sf.tweety.commons.BeliefSetadd, addAll, clear, getSignature, isEmpty, iterator, remove, retainAll, setSignature, size, toArray, toArray
 
- 
 
- 
- 
- 
Method Detail- 
addpublic boolean add(Attack att) Description copied from class:DungTheoryAdds the given attack to this dung theory.- Overrides:
- addin class- DungTheory
- Parameters:
- att- an attack
- Returns:
- "true" if the set of attacks has been modified.
 
 - 
addpublic boolean add(Attack att, Probability p) Adds the given attack with the given probability- Parameters:
- att- some attack
- p- some probability
- Returns:
- "true" iff this object was actually changed
 
 - 
addpublic boolean add(Argument a) Description copied from interface:GraphAdds the given node to this graph.
 - 
addpublic boolean add(Argument a, Probability p) Adds the given argument with the given probability- Parameters:
- a- some argument
- p- some probability
- Returns:
- "true" iff this object was actually changed
 
 - 
removepublic boolean remove(Attack attack) Description copied from class:DungTheoryRemoves the given attack from this Dung theory.- Overrides:
- removein class- DungTheory
- Parameters:
- attack- an attack
- Returns:
- "true" if the set of attacks has been modified.
 
 - 
removepublic boolean remove(Argument a) Description copied from class:DungTheoryRemoves the argument and all its attacks- Overrides:
- removein class- DungTheory
- Parameters:
- a- some argument
- Returns:
- true if this structure has been changed
 
 - 
getProbabilitypublic Probability getProbability(Argument a) Returns the probability of the given argument. If this framework does not contain the given argument, an IllegalArgumentException is thrown.- Parameters:
- a- some argument
- Returns:
- the probability of the argument.
 
 - 
getProbabilitypublic Probability getProbability(Attack a) Returns the probability of the given attack. If this framework does not contain the given attack, an IllegalArgumentException is thrown.- Parameters:
- a- some attack
- Returns:
- the probability of the attack.
 
 - 
getProbabilitypublic Probability getProbability(DungTheory aaf) Computes the probability of the given AAF wrt. this framework (if the given AAF is not a subgraph of this framework, it has probability zero).- Parameters:
- aaf- some AAF (supposedly a subgraph of this framework)
- Returns:
- the probability of the given AAF.
 
 - 
getSubgraphProbabilityFunctionpublic SubgraphProbabilityFunction getSubgraphProbabilityFunction() Returns the complete subgraph probability function on the subgraphs of this PAF, assuming independence between probabilities of all arguments and attacks.- Returns:
- the subgraph probability function of this framework.
 
 - 
samplepublic DungTheory sample() Samples a random DungTheory from this framework wrt. the probabilities of its elements and assuming independence.- Returns:
- a sampled DungTheory.
 
 - 
isWeightedGraphpublic boolean isWeightedGraph() Description copied from interface:GraphChecks whether this graph only contains weighted edges.- Specified by:
- isWeightedGraphin interface- Graph<Argument>
- Overrides:
- isWeightedGraphin class- DungTheory
- Returns:
- "true" if all edges are weighted in this graph.
 
 - 
toStringpublic java.lang.String toString() - Specified by:
- toStringin interface- BeliefBase
- Specified by:
- toStringin interface- Graph<Argument>
- Overrides:
- toStringin class- DungTheory
 
 
- 
 
-