T - is the type of the language that the ASPIC theory's rules range overpublic class AspicParser<T extends Invertable> extends Parser<AspicArgumentationTheory<T>>
| Modifier and Type | Field and Description |
|---|---|
private Parser<? extends BeliefBase> |
formulaparser
Used to parse formulae
|
private RuleFormulaGenerator<T> |
rfg |
private java.lang.String |
symbolComma |
private java.lang.String |
symbolDefeasible |
private java.lang.String |
symbolStrict |
| Constructor and Description |
|---|
AspicParser(Parser<? extends BeliefBase> formulaparser,
RuleFormulaGenerator<T> rfg)
Constructs a new instance
|
| Modifier and Type | Method and Description |
|---|---|
AspicArgumentationTheory<T> |
parseBeliefBase(java.io.Reader reader)
Parses the given reader into a belief base of the given type.
|
Formula |
parseFormula(java.io.Reader reader)
Parses the given reader into a formula of the given type.
|
SimpleAspicOrder<T> |
parseSimpleOrder(java.lang.String line)
Extracts and Constructs a
SimpleAspicOrder out of a string |
void |
setSymbolComma(java.lang.String symbolComma)
Sets a new symbol used for parsing parameter separators
|
void |
setSymbolDefeasible(java.lang.String symbolDefeasible)
Sets a new symbol used for parsing defeasible function arrows
|
void |
setSymbolStrict(java.lang.String symbolStrict)
Sets a new symbol used for parsing strict function arrows
|
isNumeric, parseBeliefBase, parseBeliefBaseFromFile, parseFormula, parseFormulaFromFileprivate final Parser<? extends BeliefBase> formulaparser
private RuleFormulaGenerator<T extends Invertable> rfg
private java.lang.String symbolStrict
private java.lang.String symbolDefeasible
private java.lang.String symbolComma
public AspicParser(Parser<? extends BeliefBase> formulaparser, RuleFormulaGenerator<T> rfg)
formulaparser - parses the bodies and the heads of the ASPIC argumentation systems rulesrfg - a generator, that transforms InferenceRulepublic void setSymbolStrict(java.lang.String symbolStrict)
symbolStrict - is the new symbolpublic void setSymbolDefeasible(java.lang.String symbolDefeasible)
symbolStrict - is the new symbolpublic void setSymbolComma(java.lang.String symbolComma)
symbolStrict - is the new symbolpublic AspicArgumentationTheory<T> parseBeliefBase(java.io.Reader reader) throws java.io.IOException, ParserException
ParserparseBeliefBase in class Parser<AspicArgumentationTheory<T extends Invertable>>reader - a readerjava.io.IOExceptionParserExceptionpublic Formula parseFormula(java.io.Reader reader) throws java.io.IOException, ParserException
ParserparseFormula in class Parser<AspicArgumentationTheory<T extends Invertable>>reader - a readerjava.io.IOExceptionParserExceptionpublic SimpleAspicOrder<T> parseSimpleOrder(java.lang.String line)
SimpleAspicOrder out of a stringline - the source string