public abstract class AbstractDungParser extends net.sf.tweety.commons.Parser<DungTheory>
| Constructor and Description |
|---|
AbstractDungParser() |
| Modifier and Type | Method and Description |
|---|---|
static AbstractDungParser |
getParser(FileFormat f)
Retrieves the parser for the given file format.
|
abstract DungTheory |
parse(Reader reader)
Parses the given file into an abstract argumentation framework
|
static Extension |
parseArgumentList(String s)
Returns a collection view of the given set of arguments
|
DungTheory |
parseBeliefBase(Reader reader) |
static boolean |
parseBoolean(String s)
Parses the given string (either "YES" or "NO") to a boolean value.
|
static Collection<Collection<Argument>> |
parseExtensionList(String s)
Returns a collection view of the given set of extensions (=sets of
arguments)
|
net.sf.tweety.commons.Formula |
parseFormula(Reader reader) |
static Labeling |
parseLabeling(String s)
Returns a labeling parsed from the given string
|
static Collection<Labeling> |
parseLabelingList(String s)
Returns a collection view of the given set of labelings
|
public static AbstractDungParser getParser(FileFormat f)
f - some file formatpublic DungTheory parseBeliefBase(Reader reader) throws IOException, net.sf.tweety.commons.ParserException
parseBeliefBase in class net.sf.tweety.commons.Parser<DungTheory>IOExceptionnet.sf.tweety.commons.ParserExceptionpublic net.sf.tweety.commons.Formula parseFormula(Reader reader) throws IOException, net.sf.tweety.commons.ParserException
parseFormula in class net.sf.tweety.commons.Parser<DungTheory>IOExceptionnet.sf.tweety.commons.ParserExceptionpublic static Extension parseArgumentList(String s)
s - some string in the format "[arg1,...,argn]".public static Collection<Collection<Argument>> parseExtensionList(String s)
s - some string in the format
"[[arg1,...,argn],...,[arg1,...,argn]]".public static Collection<Labeling> parseLabelingList(String s)
s - some string in the format
"[[IN1,...,INM],[OUT1,...,OUTN],[UNDEC1,...,UNDECM]]\n...[[IN1,...,INM],[OUT1,...,OUTN],[UNDEC1,...,UNDECM]]".public static boolean parseBoolean(String s)
s - some string (either "YES" or "NO")public static Labeling parseLabeling(String s)
s - some string in the format
[[IN1,...,INM],[OUT1,...,OUTN],[UNDEC1,...,UNDECM]]public abstract DungTheory parse(Reader reader) throws IOException
f - some fileIOException - for all errors concerning file reading.Copyright © 2018. All rights reserved.