Package net.sf.tweety.arg.social.syntax
Class SocialAbstractArgumentationFramework
- java.lang.Object
-
- net.sf.tweety.commons.BeliefSet<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.syntax.DungSignature>
-
- net.sf.tweety.arg.dung.syntax.DungTheory
-
- net.sf.tweety.arg.social.syntax.SocialAbstractArgumentationFramework
-
- All Implemented Interfaces:
Comparable<net.sf.tweety.arg.dung.syntax.DungTheory>,Iterable<net.sf.tweety.arg.dung.syntax.Argument>,Collection<net.sf.tweety.arg.dung.syntax.Argument>,net.sf.tweety.commons.BeliefBase,net.sf.tweety.graphs.Graph<net.sf.tweety.arg.dung.syntax.Argument>
public class SocialAbstractArgumentationFramework extends net.sf.tweety.arg.dung.syntax.DungTheoryThis class implements a social abstract argumentation framework from [Joao Leite, Joao Martins. Social Abstract Argumentation. IJCAI 2011]- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description SocialAbstractArgumentationFramework()Creates a new empty social abstract argumentation frameworkSocialAbstractArgumentationFramework(net.sf.tweety.graphs.Graph<net.sf.tweety.arg.dung.syntax.Argument> graph)Creates a new social abstract argumentation framework from the given graph.
-
Method Summary
Modifier and Type Method Description booleanadd(net.sf.tweety.arg.dung.syntax.Argument a)booleanadd(net.sf.tweety.arg.dung.syntax.DungTheory theory)intgetNegative(net.sf.tweety.arg.dung.syntax.Argument arg)Returns the number of negative votes of the given argumentintgetPositive(net.sf.tweety.arg.dung.syntax.Argument arg)Returns the number of positive votes of the given argumentbooleanremove(net.sf.tweety.arg.dung.syntax.Argument a)StringtoString()voidvoteDown(net.sf.tweety.arg.dung.syntax.Argument arg)Adds a negative vote to the given argument.voidvoteDown(net.sf.tweety.arg.dung.syntax.Argument arg, int number)Adds the given number of negative votes to the given argumentvoidvoteUp(net.sf.tweety.arg.dung.syntax.Argument arg)Adds a positive vote to the given argument.voidvoteUp(net.sf.tweety.arg.dung.syntax.Argument arg, int number)Adds the given number of positive votes to the given argument-
Methods inherited from class net.sf.tweety.arg.dung.syntax.DungTheory
add, 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, instantiateSignature, isAttackBranch, isAttacked, isAttacked, isAttackedBy, isAttackedBy, isAttackingAllOtherArguments, isCoherent, isDefenseBranch, isIndirectAttack, isRelativelyCoherent, isStable, isSupport, isWeightedGraph, isWellFounded, prettyPrint, remove, removeAll
-
Methods inherited from class net.sf.tweety.commons.BeliefSet
add, addAll, clear, getSignature, instantiateSet, isEmpty, iterator, remove, retainAll, setSignature, size, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
SocialAbstractArgumentationFramework
public SocialAbstractArgumentationFramework()
Creates a new empty social abstract argumentation framework
-
SocialAbstractArgumentationFramework
public SocialAbstractArgumentationFramework(net.sf.tweety.graphs.Graph<net.sf.tweety.arg.dung.syntax.Argument> graph)
Creates a new social abstract argumentation framework from the given graph.- Parameters:
graph- some graph
-
-
Method Detail
-
getPositive
public int getPositive(net.sf.tweety.arg.dung.syntax.Argument arg)
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
public int getNegative(net.sf.tweety.arg.dung.syntax.Argument arg)
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
public void voteUp(net.sf.tweety.arg.dung.syntax.Argument arg, int number)Adds the given number of positive votes to the given argument- Parameters:
arg- some argumentnumber- some number
-
voteUp
public void voteUp(net.sf.tweety.arg.dung.syntax.Argument arg)
Adds a positive vote to the given argument.- Parameters:
arg- some argument
-
voteDown
public void voteDown(net.sf.tweety.arg.dung.syntax.Argument arg, int number)Adds the given number of negative votes to the given argument- Parameters:
arg- some argumentnumber- some number
-
voteDown
public void voteDown(net.sf.tweety.arg.dung.syntax.Argument arg)
Adds a negative vote to the given argument.- Parameters:
arg- some argument
-
remove
public boolean remove(net.sf.tweety.arg.dung.syntax.Argument a)
- Overrides:
removein classnet.sf.tweety.arg.dung.syntax.DungTheory
-
add
public boolean add(net.sf.tweety.arg.dung.syntax.Argument a)
- Specified by:
addin interfaceCollection<net.sf.tweety.arg.dung.syntax.Argument>- Specified by:
addin interfacenet.sf.tweety.graphs.Graph<net.sf.tweety.arg.dung.syntax.Argument>- Overrides:
addin classnet.sf.tweety.arg.dung.syntax.DungTheory
-
add
public boolean add(net.sf.tweety.arg.dung.syntax.DungTheory theory)
- Overrides:
addin classnet.sf.tweety.arg.dung.syntax.DungTheory
-
toString
public String toString()
- Specified by:
toStringin interfacenet.sf.tweety.commons.BeliefBase- Specified by:
toStringin interfacenet.sf.tweety.graphs.Graph<net.sf.tweety.arg.dung.syntax.Argument>- Overrides:
toStringin classnet.sf.tweety.arg.dung.syntax.DungTheory
-
-