Class TgfParser


  • public class TgfParser
    extends AbstractDungParser
    Parses abstract argumentation frameworks given in the trivial graph format which is given by the following BNF (start symbol is S):

    S ::== ARGUMENTS "#" "\n" ATTACKS
    ARGUMENTS ::== "" | ARGUMENT "\n" ARGUMENTS
    ATTACKS ::== "" | ATTACK "\n" ATTACKS
    ATTACK ::== ARGUMENT ARGUMENT
    where "ARGUMENT" represents any string (without blanks) as a terminal symbol.
    Author:
    Matthias Thimm
    • Constructor Detail

      • TgfParser

        public TgfParser()
    • Method Detail

      • parse

        public DungTheory parse​(java.io.Reader reader)
                         throws java.io.IOException
        Description copied from class: AbstractDungParser
        Parses the given file into an abstract argumentation framework
        Specified by:
        parse in class AbstractDungParser
        Parameters:
        reader - some reader
        Returns:
        an abstract argumentation framework
        Throws:
        java.io.IOException - for all errors concerning file reading.