Class SocialAbstractArgumentationFramework

  • All Implemented Interfaces:
    java.lang.Comparable<DungTheory>, java.lang.Iterable<Argument>, java.util.Collection<Argument>, BeliefBase, 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 Detail

      • 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 Detail

      • 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 java.util.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