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, BeliefBase, GeneralGraph<Argument>, Graph<Argument>

public class SocialAbstractArgumentationFramework extends DungTheory
This class implements a social abstract argumentation framework from [Joao Leite, Joao Martins. Social Abstract Argumentation. IJCAI 2011]
Author:
Matthias Thimm
  • Constructor Details

    • SocialAbstractArgumentationFramework

      public SocialAbstractArgumentationFramework()
      Creates a new empty social abstract argumentation framework
    • SocialAbstractArgumentationFramework

      public SocialAbstractArgumentationFramework(Graph<Argument> graph)
      Creates a new social abstract argumentation framework from the given graph.
      Parameters:
      graph - some graph
  • Method Details

    • getPositive

      public int getPositive(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(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(Argument arg, int number)
      Adds the given number of positive votes to the given argument
      Parameters:
      arg - some argument
      number - some number
    • voteUp

      public void voteUp(Argument arg)
      Adds a positive vote to the given argument.
      Parameters:
      arg - some argument
    • voteDown

      public void voteDown(Argument arg, int number)
      Adds the given number of negative votes to the given argument
      Parameters:
      arg - some argument
      number - some number
    • voteDown

      public void voteDown(Argument arg)
      Adds a negative vote to the given argument.
      Parameters:
      arg - some argument
    • remove

      public boolean remove(Argument a)
      Description copied from class: DungTheory
      Removes the argument and all its attacks
      Overrides:
      remove in class DungTheory
      Parameters:
      a - some argument
      Returns:
      true if this structure has been changed
    • add

      public boolean add(Argument a)
      Description copied from interface: Graph
      Adds the given node to this graph.
      Specified by:
      add in interface Collection<Argument>
      Specified by:
      add in interface Graph<Argument>
      Overrides:
      add in class DungTheory
      Parameters:
      a - some node.
      Returns:
      "true" iff the edge has been added successfully.
    • add

      public boolean add(DungTheory theory)
      Description copied from class: DungTheory
      Adds all arguments and attacks of the given theory to this theory
      Overrides:
      add in class DungTheory
      Parameters:
      theory - some Dung theory
      Returns:
      "true" if this Dung Theory has been modified
    • toString

      public String toString()
      Specified by:
      toString in interface BeliefBase
      Specified by:
      toString in interface Graph<Argument>
      Overrides:
      toString in class DungTheory