Class SocialAbstractArgumentationFramework
java.lang.Object
org.tweetyproject.commons.BeliefSet<Argument,DungSignature>
org.tweetyproject.arg.dung.syntax.DungTheory
org.tweetyproject.arg.social.syntax.SocialAbstractArgumentationFramework
- All Implemented Interfaces:
Comparable<DungTheory>
,Iterable<Argument>
,Collection<Argument>
,ArgumentationFramework<Argument>
,BeliefBase
,GeneralGraph<Argument>
,Graph<Argument>
This class implements a social abstract argumentation framework from
[Joao Leite, Joao Martins. Social Abstract Argumentation. IJCAI 2011]
- Author:
- Matthias Thimm
-
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
ConstructorDescriptionCreates a new empty social abstract argumentation frameworkCreates a new social abstract argumentation framework from the given graph. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds the given node to this graph.boolean
add
(DungTheory theory) Adds all arguments and attacks of the given theory to this theoryint
getNegative
(Argument arg) Returns the number of negative votes of the given argumentint
getPositive
(Argument arg) Returns the number of positive votes of the given argumentboolean
Removes the argument and all its attackstoString()
void
Adds a negative vote to the given argument.void
Adds the given number of negative votes to the given argumentvoid
Adds a positive vote to the given argument.void
Adds the given number of positive votes to the given argumentMethods inherited from class org.tweetyproject.arg.dung.syntax.DungTheory
add, add, add, addAllAttacks, addAttack, areAdjacent, clone, compareTo, contains, containsAll, containsAttack, containsCycle, containsOddCycle, equals, equalsIn, existsDirectedPath, faf, getAdjacencyMatrix, getAttacked, getAttacked, getAttackers, getAttackers, getAttacks, getBidirectionalAttacks, getChildren, getComplementGraph, getComponents, getEdge, getEdges, getInducedSubgraphs, getMinimalSignature, getNeighbors, getNodes, getNumberOfNodes, getParents, getReduct, getRestriction, getStronglyConnectedComponents, getSubgraphs, hasAttackBranch, hasDefenseBranch, hashCode, hasSelfLoops, isAcceptable, isAdmissable, isAttackBranch, isAttacked, isAttacked, isAttackedBy, isAttackedBy, isAttackingAllOtherArguments, isCoherent, isComplete, isConflictFree, isDefenseBranch, isIndirectAttack, isRelativelyCoherent, isStable, isSupport, isWeightedGraph, isWellFounded, prettyPrint, remove, removeAll
Methods inherited from class org.tweetyproject.commons.BeliefSet
add, addAll, clear, getSignature, isEmpty, iterator, remove, retainAll, setSignature, size, toArray, toArray, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
SocialAbstractArgumentationFramework
public SocialAbstractArgumentationFramework()Creates a new empty social abstract argumentation framework -
SocialAbstractArgumentationFramework
Creates a new social abstract argumentation framework from the given graph.- Parameters:
graph
- some graph
-
-
Method Details
-
getPositive
Returns the number of positive votes of the given argument- Parameters:
arg
- some argument- Returns:
- the number of positive votes of the given argument
-
getNegative
Returns the number of negative votes of the given argument- Parameters:
arg
- some argument- Returns:
- the number of negative votes of the given argument
-
voteUp
Adds the given number of positive votes to the given argument- Parameters:
arg
- some argumentnumber
- some number
-
voteUp
Adds a positive vote to the given argument.- Parameters:
arg
- some argument
-
voteDown
Adds the given number of negative votes to the given argument- Parameters:
arg
- some argumentnumber
- some number
-
voteDown
Adds a negative vote to the given argument.- Parameters:
arg
- some argument
-
remove
Description copied from class:DungTheory
Removes the argument and all its attacks- Overrides:
remove
in classDungTheory
- Parameters:
a
- some argument- Returns:
- true if this structure has been changed
-
add
Description copied from interface:Graph
Adds the given node to this graph.- Specified by:
add
in interfaceCollection<Argument>
- Specified by:
add
in interfaceGraph<Argument>
- Overrides:
add
in classDungTheory
- Parameters:
a
- some node.- Returns:
- "true" iff the edge has been added successfully.
-
add
Description copied from class:DungTheory
Adds all arguments and attacks of the given theory to this theory- Overrides:
add
in classDungTheory
- Parameters:
theory
- some Dung theory- Returns:
- "true" if this Dung Theory has been modified
-
toString
- Specified by:
toString
in interfaceBeliefBase
- Specified by:
toString
in interfaceGraph<Argument>
- Overrides:
toString
in classDungTheory
-