public class DimacsParser extends Parser<PlBeliefSet>
Modifier and Type | Field and Description |
---|---|
private Proposition[] |
prop_idx
An array representation of the propositions (for index mapping)
|
private PropositionalSignature |
signature
The signature used for parsing (is automatically set if a file is parsed, but
must be set explicitly if only a single formula is parsed).
|
Constructor and Description |
---|
DimacsParser() |
Modifier and Type | Method and Description |
---|---|
PlBeliefSet |
parseBeliefBase(java.io.Reader reader)
Parses the given reader into a belief base of the given type.
|
Disjunction |
parseFormula(java.io.Reader reader)
Parses the given reader into a formula of the given type.
|
void |
setSignature(PropositionalSignature sig)
Sets the signature of this parser.
|
isNumeric, parseBeliefBase, parseBeliefBaseFromFile, parseFormula, parseFormulaFromFile
private PropositionalSignature signature
private Proposition[] prop_idx
public void setSignature(PropositionalSignature sig)
sig
- some signaturepublic PlBeliefSet parseBeliefBase(java.io.Reader reader) throws java.io.IOException, ParserException
Parser
parseBeliefBase
in class Parser<PlBeliefSet>
reader
- a readerjava.io.IOException
ParserException
public Disjunction parseFormula(java.io.Reader reader) throws java.io.IOException, ParserException
Parser
parseFormula
in class Parser<PlBeliefSet>
reader
- a readerjava.io.IOException
ParserException