public class JSRuleInferenceEngine extends Object
| Constructor and Description |
|---|
JSRuleInferenceEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFact(String name,
ConditionType conditionType,
Object value) |
void |
addFact(String name,
Object value) |
void |
buildRules() |
void |
clearFacts() |
List<Clause> |
getFacts(String variable) |
WorkingMemory |
getKnowledgeBase() |
void |
infer() |
boolean |
loadFile(String filepath) |
boolean |
loadString(String js_content) |
RuleBuilder |
newRule() |
RuleBuilder |
newRule(String name) |
void |
run(String jsContent) |
public void addFact(String name, ConditionType conditionType, Object value)
public RuleBuilder newRule(String name)
public RuleBuilder newRule()
public void infer()
public boolean loadFile(String filepath) throws ScriptException
ScriptExceptionpublic boolean loadString(String js_content) throws ScriptException
ScriptExceptionpublic void clearFacts()
public void buildRules()
throws ScriptException
ScriptExceptionpublic WorkingMemory getKnowledgeBase()
public void run(String jsContent) throws ScriptException
ScriptExceptionCopyright © 2017. All rights reserved.