|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.ie.cowbots.bdi.brf.Parser
public class Parser
This class translates jason literals into elps and backwards.
Constructor Summary | |
---|---|
Parser()
|
Method Summary | |
---|---|
static ELPLiteral |
parseJLiteral(Literal l)
translates a jason literal to an ELPLiteral |
static java.util.ArrayList<ELPRule> |
parseJLiteralToRules(Literal l)
this method converts jason literals into elp rules. |
static ELPLiteral |
parseLiteralFromPlan(Literal l,
int worldtime,
java.lang.String sourceOverride)
translates an annotated jason literal into an elp literal. |
static Literal |
parsePlanLiteralToJason(Literal l)
|
static java.util.List<Literal> |
toJasonLiterals(java.util.Collection<ELPLiteral> lits)
converts a collection of elp literals into a list of jason literals |
static Literal |
toJasonWithSourceRewrite(ELPLiteral l)
converts an elp literal to a jason literal, and additionally sets the first term as a source annotation (but does not remove first term). |
static Literal |
toJasonWithSourceTerm(ELPLiteral l)
converts an elp literal to a jason literal, removes first term from predicate and adds it as source |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Parser()
Method Detail |
---|
public static ELPLiteral parseLiteralFromPlan(Literal l, int worldtime, java.lang.String sourceOverride)
l
- jason literalworldtime
- time
public static Literal parsePlanLiteralToJason(Literal l)
public static Literal toJasonWithSourceTerm(ELPLiteral l)
l
-
public static Literal toJasonWithSourceRewrite(ELPLiteral l)
l
-
public static java.util.ArrayList<ELPRule> parseJLiteralToRules(Literal l)
l
- jason literals
public static ELPLiteral parseJLiteral(Literal l)
l
- jason literal to translate
public static java.util.List<Literal> toJasonLiterals(java.util.Collection<ELPLiteral> lits)
lits
- collection of ELPLiterals
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |