public class ClNLPTranslator extends Translator
| Modifier and Type | Field and Description |
|---|---|
private FOLPropTranslator |
fol2pl |
TT_ASSOC, TT_ATOM, TT_PREDICATE, TT_RULE| Constructor and Description |
|---|
ClNLPTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.Class<?>,Pair<java.lang.Integer,java.lang.Class<?>>> |
createTranslateMap() |
ClBeliefSet |
toCl(NLPProgram program)
Translate the given NLP-program into a conditional belief set.
|
Conditional |
toCl(NLPRule rule)
Translates the given NLP-rule into a conditional.
|
NLPProgram |
toNLP(ClBeliefSet conditionals)
Translate the given conditional belief set into a NLP-program.
|
(package private) NLPRule |
toNLP(Conditional cond)
Translates the given conditional to a NLP-rule.
|
createInstance, getTranslateInfo, translateAssociative, translateAtom, translatePredicate, translateRule, translateUsingMapprivate FOLPropTranslator fol2pl
NLPRule toNLP(Conditional cond)
rule - The conditional that is going to be translated.public Conditional toCl(NLPRule rule)
rule - public ClBeliefSet toCl(NLPProgram program)
program - The NLP-program that is translatedpublic NLPProgram toNLP(ClBeliefSet conditionals)
conditionals - The set of conditionals that is translatedprotected java.util.Map<java.lang.Class<?>,Pair<java.lang.Integer,java.lang.Class<?>>> createTranslateMap()
createTranslateMap in class Translator