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_SIGNATUREFields inherited from interface org.tweetyproject.graphs.Graph
IGNORE_SELFLOOPS, INVERT_SELFLOOPS, REMOVE_SELFLOOPS -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new empty social abstract argumentation frameworkCreates a new social abstract argumentation framework from the given graph. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds the given node to this graph.booleanadd(DungTheory theory) Adds all arguments and attacks of the given theory to this theoryintgetNegative(Argument arg) Returns the number of negative votes of the given argumentintgetPositive(Argument arg) Returns the number of positive votes of the given argumentbooleanRemoves the argument and all its attackstoString()voidAdds a negative vote to the given argument.voidAdds the given number of negative votes to the given argumentvoidAdds a positive vote to the given argument.voidAdds 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, getConnectedComponents, getEdge, getEdges, getInducedSubgraphs, getMinimalSignature, getNeighbors, getNodes, getNumberOfEdges, getNumberOfNodes, getParents, getReduct, getReduct, getRestriction, getStronglyConnectedComponents, getSubgraphs, getUnattackedAttackers, getUndefendedAttacks, hasAttackBranch, hasDefenseBranch, hashCode, hasSelfLoops, isAcceptable, isAdmissible, isAttackBranch, isAttacked, isAttacked, isAttackedBy, isAttackedBy, isAttackingAllOtherArguments, isCoherent, isComplete, isConflictFree, isConflictFree, isDefenseBranch, isIndirectAttack, isPreferred, isRelativelyCoherent, isStable, isStronglyDefendedBy, isSupport, isWeightedGraph, isWellFounded, prettyPrint, remove, removeAllMethods inherited from class org.tweetyproject.commons.BeliefSet
add, addAll, clear, getSignature, isEmpty, iterator, remove, retainAll, setSignature, size, toArray, toArray, toStringMethods 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
-
-
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:DungTheoryRemoves the argument and all its attacks- Overrides:
removein classDungTheory- Parameters:
a- some argument- Returns:
- true if this structure has been changed
-
add
Description copied from interface:GraphAdds the given node to this graph.- Specified by:
addin interfaceCollection<Argument>- Specified by:
addin interfaceGraph<Argument>- Overrides:
addin classDungTheory- Parameters:
a- some node.- Returns:
- "true" iff the edge has been added successfully.
-
add
Description copied from class:DungTheoryAdds all arguments and attacks of the given theory to this theory- Overrides:
addin classDungTheory- Parameters:
theory- some Dung theory- Returns:
- "true" if this Dung Theory has been modified
-
toString
- Specified by:
toStringin interfaceBeliefBase- Specified by:
toStringin interfaceGraph<Argument>- Overrides:
toStringin classDungTheory
-