public class GroundingRequirementsParser extends Object
| Constructor and Description |
|---|
GroundingRequirementsParser() |
| Modifier and Type | Method and Description |
|---|---|
GroundingRequirement |
parseRequirement(String s,
Set<net.sf.tweety.logics.commons.syntax.Variable> variables)
Parses a string of the following form:
(VARIABLENAME "<>" VARIABLENAME | VARIABLENAME "<>" CONSTANTNAME)
where the constant CONSTANTNAME has to be of the same sort as the
variable VARIABLENAME.
|
Set<GroundingRequirement> |
parseRequirements(String s,
Set<net.sf.tweety.logics.commons.syntax.Variable> variables)
Parses a string of the following form: REQUIREMENT ("," REQUIREMENT)*
|
public Set<GroundingRequirement> parseRequirements(String s, Set<net.sf.tweety.logics.commons.syntax.Variable> variables) throws net.sf.tweety.commons.ParserException
s - A set of variables which are allowed in these requirements.net.sf.tweety.commons.ParserExceptionpublic GroundingRequirement parseRequirement(String s, Set<net.sf.tweety.logics.commons.syntax.Variable> variables) throws net.sf.tweety.commons.ParserException
s - a string containing a single requirementnet.sf.tweety.commons.ParserExceptionCopyright © 2018. All rights reserved.