Class DiscussionBasedRankingReasoner

  • All Implemented Interfaces:
    net.sf.tweety.commons.ModelProvider<net.sf.tweety.arg.dung.syntax.Argument,​net.sf.tweety.arg.dung.syntax.DungTheory,​net.sf.tweety.arg.dung.semantics.NumericalArgumentRanking>, net.sf.tweety.commons.postulates.PostulateEvaluatable<net.sf.tweety.arg.dung.syntax.Argument>

    public class DiscussionBasedRankingReasoner
    extends AbstractRankingReasoner<net.sf.tweety.arg.dung.semantics.NumericalArgumentRanking>
    This class implements the "Discussion-based" argument semantics approach as proposed by [Amgoud, Ben-Naim. Ranking-based semantics for argumentation frameworks. 2013]. It compares arguments by counting the number of paths ending to to them. If some arguments are equivalent wrt. to their number of direct attackers, the size of paths is increased recursively until a difference is found.
    Author:
    Anna Gessler
    • Method Summary

      Modifier and Type Method Description
      net.sf.tweety.arg.dung.semantics.NumericalArgumentRanking getModel​(net.sf.tweety.arg.dung.syntax.DungTheory base)  
      Collection<net.sf.tweety.arg.dung.semantics.NumericalArgumentRanking> getModels​(net.sf.tweety.arg.dung.syntax.DungTheory bbase)  
      int getNumberOfPathsOfLength​(net.sf.tweety.arg.dung.syntax.DungTheory base, net.sf.tweety.arg.dung.syntax.Argument a, int i)
      Returns the number of linear discussions of the given length in the given DungTheory for the given argument.
      HashSet<ArrayList<net.sf.tweety.arg.dung.syntax.Argument>> getPathsOfHigherSize​(HashSet<ArrayList<net.sf.tweety.arg.dung.syntax.Argument>> old_paths, net.sf.tweety.arg.dung.syntax.DungTheory base)
      Given a set of argument paths of length i-1, this method returns a set of argument paths of length i for the given DungTheory.
    • Constructor Detail

      • DiscussionBasedRankingReasoner

        public DiscussionBasedRankingReasoner()
    • Method Detail

      • getModels

        public Collection<net.sf.tweety.arg.dung.semantics.NumericalArgumentRanking> getModels​(net.sf.tweety.arg.dung.syntax.DungTheory bbase)
      • getModel

        public net.sf.tweety.arg.dung.semantics.NumericalArgumentRanking getModel​(net.sf.tweety.arg.dung.syntax.DungTheory base)
      • getNumberOfPathsOfLength

        public int getNumberOfPathsOfLength​(net.sf.tweety.arg.dung.syntax.DungTheory base,
                                            net.sf.tweety.arg.dung.syntax.Argument a,
                                            int i)
        Returns the number of linear discussions of the given length in the given DungTheory for the given argument.
        Parameters:
        base - the abstract argumentation framework
        a - an argument
        i - length of linear discussions
        Returns:
        the number of linear discussions of the given length
      • getPathsOfHigherSize

        public HashSet<ArrayList<net.sf.tweety.arg.dung.syntax.Argument>> getPathsOfHigherSize​(HashSet<ArrayList<net.sf.tweety.arg.dung.syntax.Argument>> old_paths,
                                                                                               net.sf.tweety.arg.dung.syntax.DungTheory base)
        Given a set of argument paths of length i-1, this method returns a set of argument paths of length i for the given DungTheory.
        Parameters:
        old_paths - set of paths of length i-1
        base - the DungTheory
        Returns:
        a set of paths of length i